+ Reply to Thread
Results 1 to 3 of 3

How to show the active cell after running a macro?

  1. #1
    Registered User
    Join Date
    07-05-2005
    Posts
    24

    How to show the active cell after running a macro?

    I have a macro that inserts rows and copies formulas on two worksheets, and then selects the first cell into which the user should begin to enter data.

    The problem is that even though the right cell is selected for the user, that cell is not necessarily visible on screen. (The screen may be showing rows 70 to 100, when the relevant row is actually 500.)

    Is there a way to "find" the active cell? To make it so that Excel has not only selected the active cell, but is actually showing it as well?

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    You can have it scroll to the row where the active cell is

    ActiveWindow.ScrollRow = ActiveCell.Row

    HTH

  3. #3
    Registered User
    Join Date
    07-05-2005
    Posts
    24
    That's exactly what I needed!

    Thanks so much; I figured there had to be a way to scroll the window but I just didn't know how to do it.

+ 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