Consulting

Results 1 to 7 of 7

Thread: Default Magnification

  1. #1
    VBAX Newbie
    Joined
    Sep 2004
    Posts
    1
    Location

    Default Magnification

    Is there a way to permantently set the default magnification for documents opened with the normal.dot template?

  2. #2
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    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

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    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]

  4. #4
    VBAX Regular village_alchemist's Avatar
    Joined
    Jul 2004
    Location
    Michigan, US
    Posts
    32
    Location
    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.

  5. #5
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    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

  6. #6
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    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

  7. #7
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    peterv6: Is this issue solved for you?
    ~Anne Troy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •