I am trying to create a macro that will allow me to do the following:
From a blank document type "New Fax" press the enter key and have my Fax Cover Template open up. I have the macro recorded and it works fine if I use the keyboard shortcut. Here is the code I have so far:
Sub New_Fax()
'
' New_Fax Macro
' Macro recorded 7/22/2008 by New User
'
Documents.Open FileName:="""My Fax.doc""", ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto, XMLTransform:=""
End Sub
Thanks for any help anyone can give me.
John
From a blank document type "New Fax" press the enter key and have my Fax Cover Template open up. I have the macro recorded and it works fine if I use the keyboard shortcut. Here is the code I have so far:
Sub New_Fax()
'
' New_Fax Macro
' Macro recorded 7/22/2008 by New User
'
Documents.Open FileName:="""My Fax.doc""", ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto, XMLTransform:=""
End Sub
Thanks for any help anyone can give me.
John