Thread: [Solved] FILLIN function
View Single Post
 
Old 10-14-2011, 05:29 PM
macropod's Avatar
macropod macropod is online now 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 Skarab,

As coded, the macro should go in the Document's 'ThisDocument' module, not in an ordinary code module. It will then run automatically when the document is opened.

For use in a template, change the macro's name to 'Document_New' and put it in the Template's 'ThisDocument' module. That way, any new document created from the template will get the prompt.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote