Help with Word 2007 Macros

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
 
G

Graham Mayor

If you want standard settings for all users then you should create a
document template (or templates) suited to the tasks you expect users to
perform that has the required settings and insist that the users create
documents for the organisation using those templates. The personal settings
a user has in his/her normal template should remain personal to that user.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top