Forum Discussion
Harry1605
Aug 20, 2022Copper Contributor
Populate Group Details
Hello, I have a table with 3,216 columns starting from row 4 it goes down to row 40. The odd number columns hold email addresses, the even number columns are blank but on row 3 they have a group...
- Aug 20, 2022
Run this macro:
Sub FillGroup() Dim c As Long Dim n As Long Dim m As Long Application.ScreenUpdating = False n = Cells(3, Columns.Count).End(xlToLeft).Column For c = 2 To n Step 2 m = Cells(Rows.Count, c - 1).End(xlUp).Row Cells(4, c).Resize(m - 3).Value = Cells(3, c).Value Next c Application.ScreenUpdating = True End Sub
Harry1605
Aug 20, 2022Copper Contributor
Hans, Thank you so much you are a life saver. I have another ask but will post a seperate question. Do I award points or anything for the solution you have provided?
- HansVogelaarAug 20, 2022MVP