+ Reply to Thread
Results 1 to 10 of 10

increase zoom when a particular cell is selected

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    increase zoom when a particular cell is selected

    hello,

    i have a drop box (data validation) which is impossible to see with the current sheet's 60% zoom.
    i was thinking when the drop down menu is clicked, it would be a nice idea for the zoom to automatically change to 110% so you can see the list easily.

    then when you click away after youve selected ypur option, the zoom returns to 60%.

    does anyone know how to write this in vba

    thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: increase zoom when a particular cell is selected

    Try something like this:

    Please Login or Register  to view this content.
    Edit: You can use specific range instead of whole column. Depending on your data.
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: increase zoom when a particular cell is selected

    put this in the worksheet module.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: increase zoom when a particular cell is selected

    where in the code do i put in the cell with the data validation

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: increase zoom when a particular cell is selected

    Right click on your sheet name -> View Code and post either mine or davesexcel solution

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: increase zoom when a particular cell is selected

    i used daveexcels. works perfectly. thanks.

    is it possible to centre the cell so its the focal point of the screen

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: increase zoom when a particular cell is selected

    Hi there,

    The following code will increase the Zoom value to 110 whenever the "ZoomCell" is selected. When another cell is selected the Zoom value will be reset to whatever value it had before the "ZoomCell" was selected.

    The code should be inserted in the VBA CodeModule for the worksheet(s) in which you wish to provide an automatic zoom facility.


    Please Login or Register  to view this content.

    The above approach has the advantage of not having to hard-code (and subsequently change if required!) a value for the lower Zoom level.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  8. #8
    Registered User
    Join Date
    04-13-2015
    Location
    Ny
    MS-Off Ver
    2010
    Posts
    5

    Re: increase zoom when a particular cell is selected

    The post from Zbor has helped me quite a bit!
    One question though, I have two different columns that I would like to zoom in on when selected. How would that coding look? I can't quite get it to work. The single column is great though, just can't get the second one to zoom.

  9. #9
    Registered User
    Join Date
    04-13-2015
    Location
    Ny
    MS-Off Ver
    2010
    Posts
    5

    Re: increase zoom when a particular cell is selected

    The post from Zbor has helped me quite a bit!
    One question though, I have two different columns that I would like to zoom in on when selected. How would that coding look? I can't quite get it to work. The single column is great though, just can't get the second one to zoom.

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,062

    Re: increase zoom when a particular cell is selected

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  2. Cell Text Box Zoom
    By Paul Cooke in forum Excel General
    Replies: 0
    Last Post: 12-05-2012, 02:14 PM
  3. [SOLVED] Cell return tab zoom level?
    By Environment in forum Excel General
    Replies: 5
    Last Post: 09-04-2012, 12:29 PM
  4. Formatting the zoom based on max number of characters in a cell
    By poopdish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2007, 01:13 PM
  5. Zoom in on selected picture
    By ufo_pilot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2006, 04:20 PM

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