Set document zoom to 90%

J

john9210

I would like Word to always open with zoom set to 90%. I’ve created an
AutoExec macro and AutoOpen macro to do this.
However, when I double-click an existing document (with Word closed), Word
also creates a blank document1. Apparently because double clicking a document
also starts Word. Is there a way I can stop AutoExec from running when I
double-click an existing document?
The two macros that I use are:
Sub AutoExec()
' AutoExec Macro
' opens a new document and sets view to 90 percent
Documents.Add Template:="Normal", NewTemplate:=False, DocumentType:=0
ActiveWindow.ActivePane.View.Zoom.Percentage = 90
End Sub


Sub AutoOpen()
' AutoOpen Macro
ActiveWindow.ActivePane.View.Zoom.Percentage = 90
End Sub
 
J

Jay Freedman

I would like Word to always open with zoom set to 90%. I’ve created an
AutoExec macro and AutoOpen macro to do this.
However, when I double-click an existing document (with Word closed), Word
also creates a blank document1. Apparently because double clicking a document
also starts Word. Is there a way I can stop AutoExec from running when I
double-click an existing document?
The two macros that I use are:
Sub AutoExec()
' AutoExec Macro
' opens a new document and sets view to 90 percent
Documents.Add Template:="Normal", NewTemplate:=False, DocumentType:=0
ActiveWindow.ActivePane.View.Zoom.Percentage = 90
End Sub


Sub AutoOpen()
' AutoOpen Macro
ActiveWindow.ActivePane.View.Zoom.Percentage = 90
End Sub

Remove the Documents.Add statement from the AutoExec; as you surmised, it's
unnecessary and causes a problem.

Even better, remove the AutoExec macro altogether. Instead, make a copy of the
AutoOpen macro and rename it to AutoNew. That will execute only when a new blank
document is created from Normal.dot. Since that happens automatically when you
start Word without an existing document, the two macros together will handle all
cases.

Besides the zoom, you may want to have your macros set some other values. Have a
look at the macros at the end of http://www.gmayor.com/installing_macro.htm.
 
J

john9210

Jay Freedman said:
Remove the Documents.Add statement from the AutoExec; as you surmised, it's
unnecessary and causes a problem.

Even better, remove the AutoExec macro altogether. Instead, make a copy of the
AutoOpen macro and rename it to AutoNew. That will execute only when a new blank
document is created from Normal.dot. Since that happens automatically when you
start Word without an existing document, the two macros together will handle all
cases.

Besides the zoom, you may want to have your macros set some other values. Have a
look at the macros at the end of http://www.gmayor.com/installing_macro.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
I now have two simple macros, AutoNew and AutoOpen. When I use File/New a
blank document opens with the correct zoom. When I double-click an existing
document (with word closed) the document opens with the correct zoom.
However, when I start word with a program shortcut the blank document does
not open with the correct zoom. What do I have to do to fix this?

Here are the two macros:
Sub AutoNew()
' Set default zoom when a blank document is created from Normal.dot
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Sub AutoOpen()
' Set default zoom when you create a new document
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub
 
J

Jay Freedman

john9210 said:
[snip]
I now have two simple macros, AutoNew and AutoOpen. When I use
File/New a blank document opens with the correct zoom. When I
double-click an existing document (with word closed) the document
opens with the correct zoom. However, when I start word with a
program shortcut the blank document does not open with the correct
zoom. What do I have to do to fix this?

Here are the two macros:
Sub AutoNew()
' Set default zoom when a blank document is created from Normal.dot
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Sub AutoOpen()
' Set default zoom when you create a new document
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Open Normal.dot itself (using File > Open and navigating to the Templates
folder). Set the zoom the way you want it, insert and then delete a space
character to "dirty" the file, save it, and close.

See http://www.word.mvps.org/FAQs/General/SaveViewAndZoom.htm for the longer
explanation.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

john9210

Jay Freedman said:
john9210 said:
Jay Freedman said:
On Sun, 1 Jun 2008 08:06:00 -0700, john9210
<[email protected]>
wrote:

I would like Word to always open with zoom set to 90%. I've created
an AutoExec macro and AutoOpen macro to do this.
[snip]
I now have two simple macros, AutoNew and AutoOpen. When I use
File/New a blank document opens with the correct zoom. When I
double-click an existing document (with word closed) the document
opens with the correct zoom. However, when I start word with a
program shortcut the blank document does not open with the correct
zoom. What do I have to do to fix this?

Here are the two macros:
Sub AutoNew()
' Set default zoom when a blank document is created from Normal.dot
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Sub AutoOpen()
' Set default zoom when you create a new document
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Open Normal.dot itself (using File > Open and navigating to the Templates
folder). Set the zoom the way you want it, insert and then delete a space
character to "dirty" the file, save it, and close.

See http://www.word.mvps.org/FAQs/General/SaveViewAndZoom.htm for the longer
explanation.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


Thanks for your help. I modified the normal.dot like you suggested and it now seems to work fine (little known secrets of Word!!!). I assume I don't really need the AutoNew and AutoOpen macros. Is that correct?
 
S

Suzanne S. Barnhill

Yes, you will still need those macros, as the setting in Normal.dot will
affect only new Blank Documents. If you use any other templates, you'll need
to do the same thing with them.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

john9210 said:
Jay Freedman said:
john9210 said:
:

On Sun, 1 Jun 2008 08:06:00 -0700, john9210
<[email protected]>
wrote:

I would like Word to always open with zoom set to 90%. I've created
an AutoExec macro and AutoOpen macro to do this. [snip]
I now have two simple macros, AutoNew and AutoOpen. When I use
File/New a blank document opens with the correct zoom. When I
double-click an existing document (with word closed) the document
opens with the correct zoom. However, when I start word with a
program shortcut the blank document does not open with the correct
zoom. What do I have to do to fix this?

Here are the two macros:
Sub AutoNew()
' Set default zoom when a blank document is created from Normal.dot
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Sub AutoOpen()
' Set default zoom when you create a new document
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Open Normal.dot itself (using File > Open and navigating to the Templates
folder). Set the zoom the way you want it, insert and then delete a space
character to "dirty" the file, save it, and close.

See http://www.word.mvps.org/FAQs/General/SaveViewAndZoom.htm for the
longer
explanation.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so
all may benefit.


Thanks for your help. I modified the normal.dot like you suggested and it
now seems to work fine (little known secrets of Word!!!). I assume I
don't really need the AutoNew and AutoOpen macros. Is that correct?
 
J

Jay Freedman

Also, the AutoOpen macro takes effect when you open a document that you get from
someone else. Without the macro, that document would open at whatever zoom
setting the other person used when they saved it.

Yes, you will still need those macros, as the setting in Normal.dot will
affect only new Blank Documents. If you use any other templates, you'll need
to do the same thing with them.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

john9210 said:
Jay Freedman said:
john9210 wrote:
:

On Sun, 1 Jun 2008 08:06:00 -0700, john9210
<[email protected]>
wrote:

I would like Word to always open with zoom set to 90%. I've created
an AutoExec macro and AutoOpen macro to do this.
[snip]
I now have two simple macros, AutoNew and AutoOpen. When I use
File/New a blank document opens with the correct zoom. When I
double-click an existing document (with word closed) the document
opens with the correct zoom. However, when I start word with a
program shortcut the blank document does not open with the correct
zoom. What do I have to do to fix this?

Here are the two macros:
Sub AutoNew()
' Set default zoom when a blank document is created from Normal.dot
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Sub AutoOpen()
' Set default zoom when you create a new document
ActiveWindow.ActivePane.View.Zoom.Percentage = 80
End Sub

Open Normal.dot itself (using File > Open and navigating to the Templates
folder). Set the zoom the way you want it, insert and then delete a space
character to "dirty" the file, save it, and close.

See http://www.word.mvps.org/FAQs/General/SaveViewAndZoom.htm for the
longer
explanation.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so
all may benefit.


Thanks for your help. I modified the normal.dot like you suggested and it
now seems to work fine (little known secrets of Word!!!). I assume I
don't really need the AutoNew and AutoOpen macros. Is that correct?
 

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