C
CISadmin
Hello,
I am a newbie to Word 2007 macros.
My main goal is to have standard settings for all users on the domain.
Main settings required at the moment is Font = Arial, Font size = 11 and
line spacing = 1.
I first read about AutoExec, AutoOpen & AutoNew.
I have got this working OK except for one problem (This is in another Post).
I then read about Document Change Macros which can be setup to work like
AutoExec etc and act Globally.
http://www.word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm
This article was not detailed enough for me to get it to work.
The below code is for testing purposes and then will be substituted when
working the way I would like.
Private Sub Document_Close()
MsgBox "You're seeing the Document_Close macro in action",
vbMsgBoxSetForeground
End Sub
Private Sub Document_New()
MsgBox "You're seeing the Document_New macro in action", vbMsgBoxSetForeground
End Sub
Private Sub Document_Open()
MsgBox "You're seeing the Document_Open macro in action",
vbMsgBoxSetForeground
End Sub
I can get the above code to work OK when the VBA code is saved to:
Normal, MS Word Object, This Document (module)
I tried to save the file as a *dotx, also tried *.dotm and copied the file
to ....\Word\Startup folder so it is loaded as an Add-in but cannot get the
macros to work.
Are the instructions I am trying to follow out dated?, I have had no luck
finding any newer instructions specifically for Word 2007.
Any help would be greatly appreciated.
As I am a newbie detailed instructions would be welcomed.
Thanks
I am a newbie to Word 2007 macros.
My main goal is to have standard settings for all users on the domain.
Main settings required at the moment is Font = Arial, Font size = 11 and
line spacing = 1.
I first read about AutoExec, AutoOpen & AutoNew.
I have got this working OK except for one problem (This is in another Post).
I then read about Document Change Macros which can be setup to work like
AutoExec etc and act Globally.
http://www.word.mvps.org/FAQs/MacrosVBA/PseudoAutoMacros.htm
This article was not detailed enough for me to get it to work.
The below code is for testing purposes and then will be substituted when
working the way I would like.
Private Sub Document_Close()
MsgBox "You're seeing the Document_Close macro in action",
vbMsgBoxSetForeground
End Sub
Private Sub Document_New()
MsgBox "You're seeing the Document_New macro in action", vbMsgBoxSetForeground
End Sub
Private Sub Document_Open()
MsgBox "You're seeing the Document_Open macro in action",
vbMsgBoxSetForeground
End Sub
I can get the above code to work OK when the VBA code is saved to:
Normal, MS Word Object, This Document (module)
I tried to save the file as a *dotx, also tried *.dotm and copied the file
to ....\Word\Startup folder so it is loaded as an Add-in but cannot get the
macros to work.
Are the instructions I am trying to follow out dated?, I have had no luck
finding any newer instructions specifically for Word 2007.
Any help would be greatly appreciated.
As I am a newbie detailed instructions would be welcomed.
Thanks