+ Reply to Thread
Results 1 to 2 of 2

Setting Default Zoom Level?

  1. #1
    Jim
    Guest

    Setting Default Zoom Level?

    Hello,
    How can I set the default zoom level for all worksheets to a specific size
    when ever a new sheet is opened? I've tried using this code, but it gives me
    an error that says "Object variable or With block variable not set"

    Sub Auto_Open()
    ActiveWindow.Zoom = 85

    End Sub

    Thanks for any help.

    Jim




  2. #2
    Don Guillett
    Guest

    Re: Setting Default Zoom Level?

    Put this in the ThisWorkbook module. Then, even if someone has changed it,
    each time the sheet is activated the zoom will change.

    Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
    ActiveWindow.Zoom = 85
    End Sub


    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Jim" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    > How can I set the default zoom level for all worksheets to a specific size
    > when ever a new sheet is opened? I've tried using this code, but it gives
    > me an error that says "Object variable or With block variable not set"
    >
    > Sub Auto_Open()
    > ActiveWindow.Zoom = 85
    >
    > End Sub
    >
    > Thanks for any help.
    >
    > Jim
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1