View Single Post
 
Old 08-12-2012, 06:37 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Umesh,

Since your document comes from another application, you cannot have it automatically do anything when you open it, since it won't contain any macro code.

You could have have a Document_Open macro like the one I posted in your Normal template but, as I said, that risks modifying every document you open - unless the document you're interested has something in its name or contents that you can test before doing the processing; in that case, you could add the test code to the macro. Of course, for this to be of any benefit to others, their Normal templates would require the same modification (and they'd also need access to your custom heading Style).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote