SteelNuttz
New Member
- Joined
- Oct 11, 2016
- Messages
- 23
Hey guys, I have a long list of contact names and addresses, none of which have a unique identifier. I need a way to pull the contact name and address info from the list, and paste it into a new tab so that I can have all of the contact names listed as column headers.
an example of two contacts might look like this:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Contact[/TD]
[TD]John Doe[/TD]
[/TR]
[TR]
[TD]Address 1[/TD]
[TD]1 Main St[/TD]
[/TR]
[TR]
[TD]Address 2[/TD]
[TD]City, St Zip[/TD]
[/TR]
[TR]
[TD]Contact[/TD]
[TD]Jane Doe[/TD]
[/TR]
[TR]
[TD]Address 1[/TD]
[TD]2 Main St[/TD]
[/TR]
[TR]
[TD]Address 2[/TD]
[TD]City, St Zip[/TD]
[/TR]
</tbody>[/TABLE]
So far I can only envision doing a "Find" in Column A for "Contact", then offsetting 1 column, selecting Activecell and the 2 cells below it, and pasting in a new tab. I can get the first one to go, I'm not sure how to continue the loop to "FindNext" and do the same thing.
The number of times I'll need to do this is variable, so it could be 1 contact, it could be 10 contacts.
Any help would be appreciated, thanks!
an example of two contacts might look like this:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Contact[/TD]
[TD]John Doe[/TD]
[/TR]
[TR]
[TD]Address 1[/TD]
[TD]1 Main St[/TD]
[/TR]
[TR]
[TD]Address 2[/TD]
[TD]City, St Zip[/TD]
[/TR]
[TR]
[TD]Contact[/TD]
[TD]Jane Doe[/TD]
[/TR]
[TR]
[TD]Address 1[/TD]
[TD]2 Main St[/TD]
[/TR]
[TR]
[TD]Address 2[/TD]
[TD]City, St Zip[/TD]
[/TR]
</tbody>[/TABLE]
So far I can only envision doing a "Find" in Column A for "Contact", then offsetting 1 column, selecting Activecell and the 2 cells below it, and pasting in a new tab. I can get the first one to go, I'm not sure how to continue the loop to "FindNext" and do the same thing.
The number of times I'll need to do this is variable, so it could be 1 contact, it could be 10 contacts.
Any help would be appreciated, thanks!