Need VBA help with variable quantity mail merge lables

Sean J

New Member
Joined
Jun 1, 2016
Messages
2
Hello, I have a large inventory list I've created in excel. I need a macro to create X number of labels from data in the table. It has 13 columns and a running number of rows. I've been looking around for a few months now but haven't found anything that works for me. Is this even possible? does it need to be done in parts? VBA code is all new to me so any help would be awesome!

The Macro needs to:
  1. Identify specific records on the 1st sheet (titled: Storage Log):
    I have a status qualifier value in column M (header: Storage Status). The macro needs to identify and work with only rows with the text "Boxed Up" in this column.
  2. Pull information from specific columns for the labels:
    I don't know if this is relevant but it needs the data in columns B,D,E, and H.
  3. Set up for a mail merge:
    This is the tricky bit. I have a quantity value in column C that will be how many labels I need generated for that entry(row). The macro can not tamper with the original table if it needs to create duplicate records. It can create a new sheet as long as it can push it to the last tab or if possible use a designated sheet to work on.
  4. Run the merge from excel to an existing ms word template:
    I have a template set up for the labels already so I'd like to use that if possible. We'll call it labeltemplate.dox. Its an avery 5963 label template with the merge fields in place and formated.
  5. Clean up after itself:
    When the merge is done I would like it to erase any changes it made to the original excel file.
 

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