Is there a way to permantently set the default magnification for documents opened with the normal.dot template?
Is there a way to permantently set the default magnification for documents opened with the normal.dot template?
Hi peter,
Welcome to VBAX!
AFAIK there is no way to set and keep a default directly.
What you can do, though, is have an auto open (or auto new) macro in your normal template which runs when you open (or create) a document. Unfortunately these do not fire when you start Word and it creates a blank document which may, of course, be exactly when you want the change!! The only event which does fire in these circumstances is the Application Document_Change Event - which also fires at other points when you don't want to do anything. Wouldn't do to be too easy, now, would it?
I'd be only too happy to be proved wrong on this one because it's a perfectly reasonable requirement which ought to be simple to implement.
Enjoy,
Tony
---------------------------------------------------------------
Give a man a fish and he'll eat for a day.
Teach him how to fish and he'll sit in a boat and drink beer all day.
I'm (slowly) building my own site: www.WordArticles.com
Hi Peter,
Try pasting the following into the ThisDocument module of Normal.dot
MD
[VBA]
Private Sub Document_Open()
For Each myWindow In Windows
myWindow.View.Zoom.Percentage = 100
Next myWindow
End Sub
[/VBA]
Maybe I'm making this too simple, but if the goal is to have a set magnification for the default blank document that Word creates when it starts or when the user clicks on the "New Blank Document" button (or File | New), then it is really quite easy.
All you have to do is modify the Normal.dot file and save it at the magnification you want. For instance, in Office 2000:
1) Open Word
2) Click the open file icon or select File | Open from the menu
3) Browse to the default templates folder
(you can find this in Word through the Tools | Options | File Locations tab)
(but it is normally something like "C:\Documents and Settings\[username]\Application Data\Microsoft\Templates")
4) Open the Normal.dot file (the file name in the title bar should say Normal.dot)
5) Set your magnification
6) Now this step is important: change the document so Word will save it. I just typed a single character then hit backspace to delete it.
7) Save the file
You're done. The next time you open Word or create a new document the magnification will be at whatever you set it to.
I like that, village alchemist.
Enjoy,
Tony
---------------------------------------------------------------
Give a man a fish and he'll eat for a day.
Teach him how to fish and he'll sit in a boat and drink beer all day.
I'm (slowly) building my own site: www.WordArticles.com
Yes, that's always the trick--you have to change something else for the normal.dot's default open view to change...
Here's our KB entry on setting a default open view to the Nth degree possible:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=65
~Anne Troy
peterv6: Is this issue solved for you?
~Anne Troy