#1
|
|||
|
|||
How do I trigger my VBA code from a document
I need to be able to produce labels using mail merge using a list produced in Excel
I want to be able to automate the MSWord part of this. I have recorded a macro to do the job which works if i launch the code from the VBA editor. I would like to be able to have my users do this from the document. I have no idea how to do this and would appreciate some help. John |
#2
|
||||
|
||||
Mailmerge from an established mailmerge main document typically requires nothing more than clicking on 'Finish & merge', then choosing the output destination. What aspect(s) do you want to automate?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks for you response. I had not realised that I could just click Finish& Merge. This does work when I open the Word Document manually.
However if the document is opened from within Excel, in the shape of the Word Icon at the bottom of my screen, and |I click on it, the "Mailings" tab contents are greyed out except for the "start mailing ". If I could overcome that I would be ecstatic! John |
#4
|
||||
|
||||
LoftySuth: Please see my reply in your other thread: https://www.msofficeforums.com/mail-...tml#post103474
Kindly don't pose essentially the same question in multiple threads - especially not in someone else's current thread.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Code in template does not run in new document | highrise955 | Word VBA | 4 | 03-06-2016 04:48 PM |
How do I trigger a macro from a document? | brucemc777 | Word VBA | 4 | 01-25-2016 01:42 AM |
Vba code to save document as pdf using document property text and rename folder. | staicumihai | Word VBA | 1 | 12-21-2015 07:39 AM |
How to run code in Each table in the document instead of just the First one? | Snaybot | Word VBA | 10 | 11-11-2015 03:12 PM |
how can I add a peace of code to MS document | amlife | Word VBA | 0 | 03-03-2010 03:35 PM |