+ Reply to Thread
Results 1 to 3 of 3

I want the tab key to move to a specific cell, not the next one along. How please?

  1. #1
    Forum Contributor
    Join Date
    08-10-2022
    Location
    Manchester
    MS-Off Ver
    2021
    Posts
    109

    I want the tab key to move to a specific cell, not the next one along. How please?

    It's while since I have been on the site, but I have googled this and not found the answer:


    What I want to do is enable the cursor to move to a specific cell and not the next one. So instead of going from A1 to A2 as is normal, I'd like it to go to A4 etc.

    Is it possible?

    Thanks in advance

    Antony

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: I want the tab key to move to a specific cell, not the next one along. How please?

    Would be helpful to understand more about how you want it to behave. Note that typical 'Tab' behaviour would be to move from A1 to B1, not A2.

    One option is to lock cells, and protect the worksheet with 'Select Locked cells' unticked. Tab will then skip to the next unlocked cell. The downside of course is if you want to change the data / don't want to protect the sheet.

    Another is to use VBA to change behaviour when you press the Tab key in excel.

    To do this, add this as code under 'ThisWorkbook' (note it will only work when you reopen the workbook with macros enabled). This will detect if Tab is pressed.
    Please Login or Register  to view this content.
    Then insert a new module with instructions of what happens when the above code is triggered. In the below example it simply moves you to Cell A4, but it can be made more sophisticated depending on what you are trying to achieve.
    Please Login or Register  to view this content.
    Word of caution though - if someone else is picking up the workbook they might end up very confused if you use the VBA approach when it pressing keys doesn't follow the behaviour they are expecting!
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Forum Contributor
    Join Date
    08-10-2022
    Location
    Manchester
    MS-Off Ver
    2021
    Posts
    109

    Re: I want the tab key to move to a specific cell, not the next one along. How please?

    Thank you. Locking cells will do the trick. Lateral thinking required.

+ 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. How to move the cursor to a specific cell based on the contents of another cell
    By plantagenet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2021, 02:55 AM
  2. Replies: 1
    Last Post: 07-15-2021, 10:48 AM
  3. move specific text from one cell to another
    By npollaro in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-02-2019, 06:39 PM
  4. Replies: 1
    Last Post: 11-18-2013, 04:18 PM
  5. [SOLVED] Move if cell contains two specific words
    By Biased Historian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2013, 07:46 PM
  6. Replies: 5
    Last Post: 05-01-2012, 04:02 PM
  7. Need to move specific text within a cell
    By Rnash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 02:03 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