VBA Code to Transfer data into Mailing Labels: Or, help me keep my job long enough to find a replacement!

NotInMyJobDesc

New Member
Joined
Jun 1, 2017
Messages
2
So my boss has decided that in lieu of doing the job I was hired for, I'm going to be gathering literally 10s of thousands of addresses and inserting them into mailing labels in a Word doc.

Not in my job description. I don't know how to use Excel beyond the basics. So... extremely frustrated and angry don't really come close to describing what I feel right now. After taking a night to think it over, I'm not walking off the job today but I'm also not going to transpose addresses line by line by hand. It feels like I'm being told to move a ton of rocks by hand while a dump truck sits idle nearby.

So I was wondering if someone could give me a hand. (Don't worry, one time request--I have new interviews lined up and I'll be out in a month)

I have a massive list of data that's broken up into 7 rows of information. Like this:

Contact Name
Phone No.
Email Address
Line 1 of Address
Line 2 of Address
Useless Data
Useless Data

Contact Name
Etc...

So seven rows of data broken by a single space followed by 7 more lines of data repeated thousands of times. I need to take lines 1, 4, and 5, and insert them into the same column so that Excel can automatically generate mailing labels.

Is there some trick to this? I was told to use VBA. I'm not a coder and I'm not professionally trained in Excel. Could someone give me a hand? Anything at all. I would be greatly appreciative.

I HATE asking for help like this, but I'm not spending 40 hours a week gathering data for the rest of the summer. I will quit my job today before that, which I really, really don't want to do.

Thank you in advance for saving a man drowning in data!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Can't you use Word mail merge with the Excel workbook as the data source?
 
Upvote 0
Can't you use Word mail merge with the Excel workbook as the data source?

I tried that first. I tried mail merge, 30 labels per page, and using an Excel sheet full of data. I get a Word Doc that says <<Next Record>> <<Next Record>> repeated. Not sure where I'm going wrong here.
 
Upvote 0
If the data is as consistent as indicated. ALWAYS 7 rows per, then just add columns for the appropriate fields and grab the appropriate relative cell by formula.
b2=a3
c2=a4
d2=a5....
Then Copy, Paste Special Values. and filter to the non-"Contact-Name" rows so you can delete that data.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,573
Members
453,054
Latest member
arz007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top