Making a macro "auto open"

J

JoshMandel

Hello,

I have the following macro, which lets me set the zoom level for a document
to 75%:

Sub View75percent()
'
' View75percent Macro
'
'
ActiveWindow.ActivePane.View.Zoom.Percentage = 75
End Sub

My question is: how can I edit this to make it an "autoopen" macro, so that
it will automatically open all existing documents to this zoom level?

Many thanks,
Josh Mandel
 
C

christophercbrewster via OfficeKB.com

You just call it AutoOpen. You can only have one of these that applies. Same
with AutoExec and AutoNew.
Hello,

I have the following macro, which lets me set the zoom level for a document
to 75%:

Sub View75percent()
'
' View75percent Macro
'
'
ActiveWindow.ActivePane.View.Zoom.Percentage = 75
End Sub

My question is: how can I edit this to make it an "autoopen" macro, so that
it will automatically open all existing documents to this zoom level?

Many thanks,
Josh Mandel

--
Christopher Brewster
Lockheed Martin, Eagan MN

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/201002/1
 
G

Gordon Bentley-Mix

Please don't post the same question in multiple newsgroups; cross-post
instead so the answer provided in one newsgroup is displayed in all
newsgroups.
 
J

JoshMandel

Thank you, Christopher! And I apologize, Gordon, for the double post -- I
didn't realize until later that I should've included this in General
questions as well.

Josh
 

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