Word 2010: how do I change default viewing zoom of document?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 6,305
    Windows 7 Ultimate x64
       #11

    The whole document, including the macro. Once you exit the VB editor the macro will be available and will save along with the current document.
      My Computer


  2. Posts : 2,523
    -
    Thread Starter
       #12

    Okay, I guess I've got to choose "normal.dotm" from the dropdown list? Thanks for being so patient with a complete macro-newbie
    Attached Thumbnails Attached Thumbnails Word 2010: how do I change default viewing zoom of document?-macro_options.png  
      My Computer


  3. Posts : 6,305
    Windows 7 Ultimate x64
       #13

    I've just noticed that once I finish creating a macro then exit Word, I get no save notification. When I open word again, the macros I created are still there so it seems that the mecros must be part of an "auto-saved" template
      My Computer


  4. Posts : 2,523
    -
    Thread Starter
       #14

    Orbital Shark said:
    I've just noticed that once I finish creating a macro then exit Word, I get no save notification. When I open word again, the macros I created are still there so it seems that the mecros must be part of an "auto-saved" template
    Same over here (since I figured out that all the text has to be pasted into one macro) I can't complain - after all, they were disappearing all the time when I did it the wrong way
      My Computer


  5. Posts : 6,305
    Windows 7 Ultimate x64
       #15

    After some tinkering it seems that the macros are indeed saved automtically. Currently it'll open already saved documents @ the % you desire but when starting a new document, fresh start of Word, it reverts back to the default.

    There is a AutoExec sub that can be used to execute a macro when word starts but the problem is that it looks for a document which does not yet exist. It's running before the new document even opens...
      My Computer


  6. Posts : 2,523
    -
    Thread Starter
       #16

    Thank you very much for experimenting around in Word to find out why the macros are recalcitrant when Word automatically opens/generates a blank document I consider the problem solved, your code works beautifully, and I gave you a rep for your patience, time and excellent help! Happy Easter!
      My Computer


  7. Posts : 6,305
    Windows 7 Ultimate x64
       #17

    You're very welcome and thanks for the rep :)
      My Computer


  8. Posts : 2
    Windows 7 64 bit
       #18

    I can't get this to work when I open Word 2010 for the first time (and a new document opens automatically with it), nor does it work when I open a .docx file sent to me as an attachment. The macro DOES, however, seem to work when I already have Word open and click File -> New. While scouring around, I noticed that the AutoOpen sub is frequently listed with an underscore (as 'Auto_Open'). Could this be part of the problem? I want EVERY SINGLE DOCUMENT I open to be 111% zoom, regardless of what it may have been saved at. Will this macro accomplish that? Thanks!
      My Computer


  9. Posts : 2
    Windows 7 64 bit
       #19

    I also get the following error when trying to open a Word document from an attachment:

    Run-time error '4248':

    The command is not available because no document is open.

    When I click 'Debug', it highlights the first ActiveWindow command of the AutoOpen sub. Any suggestions??
      My Computer


  10. Posts : 3
    Windows 7 Home Premium x64
       #20

    Sub AutoOpen()
    On Error GoTo ErrHandler
    ActiveWindow.View.Type = 3 'print layout
    ActiveWindow.View.Zoom.Percentage = 110
    Exit Sub
    ErrHandler:
    If Err <> 0 Then
    Err.Clear
    Resume Next
    End If
    End Sub
      My Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:19.
Find Us