View Single Post
 
Old 12-21-2015, 04:35 AM
victoriasun victoriasun is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Dec 2015
Posts: 4
victoriasun is on a distinguished road
Default Auto-update field codes in Outlook Template - AutoOpen Macro not working

Hi All,

A complete VBA newbie here.

I’m want to auto update field codes in an Outlook Template.

I’ve tried writing a macro with Auto_Open(), 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 Auto_Open()
ActiveDocument.Fields.Update
End Sub


I also tried putting the code in “this outlook session”.
The macro runs properly when I click on it, but does not auto run.

Thanks!
Reply With Quote