+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Scroll with VBA to get active cell near top of window

  1. #1
    Registered User
    Join Date
    04-09-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Scroll with VBA to get active cell near top of window

    If I activate a cell with VBA macro code, if the cell is already visible on screen, the window doesn't scroll at all. If the cell isn't currently visible, Excel scrolls the window so that the selected cell's row is roughly in the middle of the window. Is there any way to scroll the window with VBA code so that the selected cell is near the top of the window. I want as much of the text below the selected cell to be visible on screen as possible.

    TIA.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Scroll with VBA to get active cell near top of window

    If you use,

    Please Login or Register  to view this content.
    The specified cell will be in top left corner.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-09-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Scroll with VBA to get active cell near top of window

    That works perfectly. Thanks!

+ 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