![]() |
|
#10
|
||||
|
||||
|
Quote:
The reason your macro doesn't work as expected is that it lacks any code to tell Word that it's a label merge. Furthermore, you're adding a single mergefield to the document and are not propagating that to all the labels. It also seems clear to me that you're not actually starting off with an empty document - it already has the empty labels in place. Had you populated the labels manually (again, a once-off exercise), there'd be no need for your code to add any mergefields or to propagate them to all the labels. The last thing to note is that, if your user was to save the document after running your macro, it would now be a mailmerge main document and would thus generate the SQL prompt next time the document is opened...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| cell padding, macro, mail merge |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Colour code mail merge header table cell backgrounds
|
ScotsMaverick | Mail Merge | 25 | 11-04-2021 02:07 PM |
| Can't modify cell margins | Sztrogacsev | Word Tables | 1 | 11-19-2015 04:27 AM |
how adjust cell width manually when table extends beyond paper margins?
|
dylansmith | Word | 1 | 11-06-2014 12:01 AM |
| Formatting imported data into a table with variable record sets | ash6540 | Excel | 6 | 03-27-2014 04:13 AM |
Problem with Cell Margins
|
Aston | Word Tables | 6 | 07-15-2011 12:02 PM |