Hi All,
A complete VBA newbie here.
I’m want to auto update field codes in an Outlook Template when it opens. The template is just a new message saved as an Outlook template with some of the text containing a field code.
I’ve tried writing a macro with Aut
pen(), AutoOpen(), and Workbook_Open functions, but no luck. I have my settings on outlook to allow any macro.
I added a new module that says:
Sub Aut
pen()
ActiveDocument.Fields.Update
End Sub
(It was working, although not right now).
I also tried putting the code in “this outlook session”.
The macro runs properly when I click on it, but does not auto run.
I'm also not sure the macro is actually attached to the template. When I send the template to others, the macro doesn't seem to be attached.
Thanks!
A complete VBA newbie here.
I’m want to auto update field codes in an Outlook Template when it opens. The template is just a new message saved as an Outlook template with some of the text containing a field code.
I’ve tried writing a macro with Aut

I added a new module that says:
Sub Aut

ActiveDocument.Fields.Update
End Sub
(It was working, although not right now).
I also tried putting the code in “this outlook session”.
The macro runs properly when I click on it, but does not auto run.
I'm also not sure the macro is actually attached to the template. When I send the template to others, the macro doesn't seem to be attached.
Thanks!