+ Reply to Thread
Results 1 to 6 of 6

Macro to adjust zoom percentage depending on users screen resolution?

  1. #1
    Registered User
    Join Date
    05-29-2011
    Location
    Edinburgh
    MS-Off Ver
    Office365
    Posts
    46

    Macro to adjust zoom percentage depending on users screen resolution?

    Is it possible to write a macro that resizes a workbook so that in anybody's computer, whoever opens it can always see 100% of the screen width?

    i.e. I have a workbook going from columns A to Q. In my view, I can see all the columns at once. Is there a macro I can write that, on opening the worksheet, alters the zoom percentage for each individual user so that column Q fits into their window?

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Macro to adjust zoom percentage depending on users screen resolution?

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    05-29-2011
    Location
    Edinburgh
    MS-Off Ver
    Office365
    Posts
    46

    Re: Macro to adjust zoom percentage depending on users screen resolution?

    Thanks a lot, will test in a minute

    What is the best way of ensuring this code runs as soon as each user opens the workbook?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to adjust zoom percentage depending on users screen resolution?

    You really shouldn't mess about with other users' settings
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    05-29-2011
    Location
    Edinburgh
    MS-Off Ver
    Office365
    Posts
    46

    Re: Macro to adjust zoom percentage depending on users screen resolution?

    I understand your point about not messing with other users settings - can you think of a way of ensuring the final column appears for all users without having to mess with their settings (there is important information in the final setting, but if their zoom is different, they may not realise its there, which may result in them using the rest of the information wrongly)

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro to adjust zoom percentage depending on users screen resolution?

    The point is as well that this won't happen if they don't enable macros then it won't make any difference. Maybe a differnt layout, even if it's a summary sheet like a dashboard

+ 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