Zoom in / out by 10 %

  • Hi I want to create a button button that zooms in by ten
    percent each time it is pressed (example: 75 > 85 > 95 percentages).


    When I record the macro, it reads:

    Code
    1. ActiveWindow.zoom = 75

    So it zooms to a specific %, instead of zoom in by a %.


    What can I do? Thanks

  • Re: Zoom in / out by 10 %


    Hi and welcome to OzGrid.


    For zooming out, try:

    Code
    1. ActiveWindow.Zoom = ActiveWindow.Zoom + 10

    Alternatively for zooming in, try:

    Code
    1. ActiveWindow.Zoom = ActiveWindow.Zoom - 10

    Barbara - aka The Cat Lady :cat:


    Please do not U2U (private message) me directly for questions that should be posted to the forum; any such U2Us, unless requested by me, will be deleted.