PDA

View Full Version : Macro - MS WORD



JAMIEEE3
03-04-2013, 05:44 AM
Hello, I’m looking for some help; I’ve not got much experience in the subject.


We are in the process of merging our MS word templates, depending on the input of the macro I’d like to display one of 3 configurations of a word document in a macro. For example if the input equals 1 then document will display logo, text, and footer information category 1 etc…


Any idea or are there any resources that anyone can point me to please?



Many thanks in advance


Jamie

macropod
03-04-2013, 06:49 AM
Cross-posted at: http://social.msdn.microsoft.com/Forums/en-US/worddev/thread/a9530976-131a-4212-a428-af5eafe3e168
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184

Doug Robbins
03-04-2013, 09:19 PM
By merging, do you mean Mail Merge?
If so, does the input come from the data source or is it something that the user will provide? If something that the user provides, will be be used for all of the records in the data source.

If it is not a Mail Merge, then you may be better off just having three templates and have the user select the one that suits.

macropod
03-04-2013, 09:42 PM
Hi Doug,

I think Jamie means merge as in amalgamate.

Having a macro conditionally reconfigure a template with different page layouts would be a challenge and kind of destroys the idea that the document should reflect its template. In a thread I've been contributing to in another forum, the thread's OP wants to update header/footer content in existing documents based on a given template. Having multiple document scenarios to deal with would add yet another layer of complexity.