+ Reply to Thread
Results 1 to 4 of 4

Update Screen Location based on cell address

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2008
    Location
    San Antonio
    Posts
    4

    Update Screen Location based on cell address

    Anyone know the right code to make Excel update the screen location based on a cell refrence? Example: I have a macro that simply references a cell in my spreadsheet. Range("A100").Select. When I run the macro, Excel selects cell A100 but the first cell in the screen is cell A81. I want the first cell in the screen(top left cell) to be A100 so my charts to the right line up right. I know you can use the ActiveWindow.SmallScroll Down:=56 or whatever but I have multiple locations thoughout the worksheet, all with different spacing.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Have a look at the ScrollRow and ScrollColumn properties in Help.

  3. #3
    Registered User
    Join Date
    08-04-2008
    Location
    San Antonio
    Posts
    4

    Update Screen Location based on cell address

    Exactly what I needed! Thanks shg

  4. #4
    Forum Contributor
    Join Date
    07-01-2008
    Location
    Cincinnati, OH
    Posts
    150
    Another method that will place A100 at the top, left of your worksheet...

    Application.Goto [a100], True

+ 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. Coloring rows based on criteria
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2008, 10:51 PM
  2. Re-running code based off the updating of a cell
    By Rivalwon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2007, 01:21 PM
  3. Look up text and return cell address which can be used for calculations
    By redseal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2007, 06:34 PM
  4. Conditional Format a cell based on a range of numbers
    By fablhof in forum Excel General
    Replies: 2
    Last Post: 04-27-2007, 11:39 PM
  5. Paste to location based on Cell contents
    By RMT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2006, 04:35 AM

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