Word 2010 - Template prompts ASK Field issues

Hi

I have created a Word 2010 Macro Enabled Template with "Ask Fields" and "Ref Fields" so the user is prompted to fill these in once the document is opened. In the template when you open it by right clicking and selecting "Open" the following macro runs:

Sub autoopen()

ActiveDocument.Fields.Update

End Sub


I have built in some auto text capabilities to this template. However when I open a new document from the template by clicking and selecting "New" when you right click the template or by double clicking it the macro isn't transferred and doesn't run.

Is there a way to make the Update fields macro run when a new document is created from the template?

Many Thanks in advance

Answer
Answer
To have a macro run when a new document is created from a template, name it AutoNew()
Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 5, 2021 Views 1,841 Applies to: