+ Reply to Thread
Results 1 to 4 of 4

Cells().Select and .Activate don't "move the camera" to that cell - how do I do this?

  1. #1
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Cells().Select and .Activate don't "move the camera" to that cell - how do I do this?

    I'm working on a big spreadsheet, and I want the selected box to "be in the vision of" the person looking at the screen.

    The macro I'm writing works fine - it selects the correct cell, but it doesn't - for lack of a better word - move the "camera" onto that cell. If the sheet is set to view rows 500 - 540, and I'm working on cell B5 - using something like Cells(2,5).Select will work to select B5, but not to change the focus of the sheet away from where it currently is over to where the macro is running.

    This is horribly explained, I'm tired... but hopefully this makes sense to someone...

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cells().Select and .Activate don't "move the camera" to that cell - how do I do this?

    Hi,

    When you say the sheet is set to view rows 500-540, do you mean that you've used the Freeze Panes option to 'lock' the top row at 500 and are trying to move the current cursor position to B5?

    If so then I guess you'll need to unfreeze the panes first.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-21-2013
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Cells().Select and .Activate don't "move the camera" to that cell - how do I do this?

    If i understand you correct, you can use one or both of theese methods to "move the camera" or in other words, scroll to the selected cell.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-16-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Cells().Select and .Activate don't "move the camera" to that cell - how do I do this?

    Awesome - thanks guys.

    There's no pane-freezing here - let's say:

    1. The previous thing I had been doing in the macro ran from B1:B500, so the current view of the sheet would show me rows 450-500 (depending on the resolution of your monitor)
    2. When I go back, I want to SEE the macro working, so I use Cells(2,1).Select, but while it selects that cell, it doesn't actually show me the .selected cell.

    I'll try the ActiveWindow.Scrollcolumn / Row to see if that works.

+ 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. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  3. [SOLVED] Data validation: allow entry into a cell if other three cells have "X", "Y" and "Z"?
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2013, 04:49 AM
  4. [SOLVED] Activate "sorting" feature when worksheets are setup to "password protect" itself
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2012, 09:04 PM
  5. [SOLVED] how do you "select locked cells" w/o "select unlocked cells"?
    By princejohnpaulfin in forum Excel General
    Replies: 3
    Last Post: 07-15-2005, 11:05 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