I am struggling to create/find vba code that can do the following: I have a worksheet with address information in column A like First Name, Last Name, phone number, email, title, physical address (each value occupying cells in column A, row by row).
There are a varying amount of blank spaces before I reach the next address data set and so on for about 3000 rows worth.
What makes this hard for me, is the varying number of blank cells that occur between the addresses, and also that not all addresses contain the same data points (i.e. some are missing phone or email).
I attempted to use the code for the first address "grouping":
This works fine once, but I need to declare variables so that I can do this over and over again.
Ultimately, the code needs to be able to copy the next address "grouping", transpose it horizontally into an adjacent column, and then go back to column A and find the next address "grouping", copy it, transpose it, and so on.
Any help/ or ideas would be very helpful!
(I am using Windows 8.1 and Excel 2013)
Thanks
NCheever
There are a varying amount of blank spaces before I reach the next address data set and so on for about 3000 rows worth.
What makes this hard for me, is the varying number of blank cells that occur between the addresses, and also that not all addresses contain the same data points (i.e. some are missing phone or email).
I attempted to use the code for the first address "grouping":
HTML:
Range("A1").Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("C2").Select Selection.PasteSpecial
Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= False, _
Transpose:=True
Ultimately, the code needs to be able to copy the next address "grouping", transpose it horizontally into an adjacent column, and then go back to column A and find the next address "grouping", copy it, transpose it, and so on.
Any help/ or ideas would be very helpful!
(I am using Windows 8.1 and Excel 2013)
Thanks

NCheever