+ Reply to Thread
Results 1 to 8 of 8

Set Cursor to Different Cells on Open

  1. #1
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Set Cursor to Different Cells on Open

    Hello,

    Not sure if it's possible but can each sheet have a set cursor cell when opening them?

    Thank you for any help or advice

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Set Cursor to Different Cells on Open

    You could probably use a VBA Worksheet Activate event handler to do that. However, you should be aware that it might mean that you can't copy and paste between sheets.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Set Cursor to Different Cells on Open

    Using VBA

    Private Sub Worksheet_Activate()
    ' set cursor to cell B3
    Range("B3").Select
    End Sub

  4. #4
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Set Cursor to Different Cells on Open

    Okay let's say I want cell b2 on sheet1, cell a1 on sheet2, and cell c11 on sheet3 to be where the cursor is when opening those sheets.

    Is it possible using vba?

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Set Cursor to Different Cells on Open

    ALT + F11 to go to vba editor
    double click Sheet1 and paste the code

    Private Sub Worksheet_Activate()
    Range("B2").Select
    End Sub

    double click Sheet2 and paste the code

    Private Sub Worksheet_Activate()
    Range("A1").Select
    End Sub

    double click Sheet3 and paste the code

    Private Sub Worksheet_Activate()
    Range("C11").Select
    End Sub

  6. #6
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Set Cursor to Different Cells on Open

    Excellent thank you so very much.

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Set Cursor to Different Cells on Open

    I'm glad to have helped.

    Thanks for the fedback.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: Set Cursor to Different Cells on Open

    To save editing all the sheets:

    ' ALT + F11 to go to VBA editor
    ' double click ThisWorkbook and paste the code

    Please Login or Register  to view this content.

+ 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] Macro to move cursor when cursor is moved to certain column
    By skylark332 in forum Excel General
    Replies: 3
    Last Post: 12-08-2015, 01:03 PM
  2. Replies: 1
    Last Post: 07-22-2015, 03:34 PM
  3. How to auto open worksheet with cursor in combobox
    By BGT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2012, 10:33 AM
  4. How do you open a file with the cursor in a combo box?
    By c2grant3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-11-2012, 02:56 AM
  5. Set active cursor in TextBox (blinking cursor)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2009, 10:54 PM
  6. [SOLVED] highlighting cells with cursor
    By Shooter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2005, 02:05 PM
  7. [SOLVED] make an excel worksheet (sheet 2) open w/ the cursor located in t.
    By animated text in excel worksheet in forum Excel General
    Replies: 0
    Last Post: 02-10-2005, 07:06 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