+ Reply to Thread
Results 1 to 8 of 8

Zoom to selction-Persistant?

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Zoom to selction-Persistant?

    I have an inventory system which is viewed on many different monitor sizes around the office. Is it possible to make the document always zoom to a given selection ("A:G") for example. I wouldn't mind using macros if need be but I only want it to run the first time a sheet is selected after opening.
    Thanks!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Zoom to selction-Persistant?

    Whether the file is in sharing?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Zoom to selction-Persistant?

    Sorry? The file is edited on one workstation and backed up to the server as a read only file. so far I am using

    Please Login or Register  to view this content.
    This does the job but runs every time a sheet is selected, which makes it flicker. I need something similar to this but only runs the first time a given sheet is selected then does nothing untill the next time the document is opened.

    I tried

    Private Sub Worksheet_Initialize()

    but it didn't do anything.

    Thanks for any advice

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Zoom to selction-Persistant?

    Try this...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Zoom to selction-Persistant?

    Still runs every time the sheet is selected. Odd how tricky it is, I would have thought there would be a reasonably good demand for a simple way to do this

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Zoom to selction-Persistant?

    It won't react in the way you described. You might have not included the below piece of code in your file, I believe

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Zoom to selction-Persistant?

    Please Login or Register  to view this content.
    Sixth code works fine for me
    as for flickering....application screenupdating might solve that

  8. #8
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Zoom to selction-Persistant?

    Ah, yes I needed to move it to the top of the page as it was getting stuck on to the bottom of the code above. Works perfectly now thanks very much!
    I was thinking to tell it not to run if a2 is already selected but this is much better.

+ 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