+ Reply to Thread
Results 1 to 4 of 4

Move cursor to the right automatically after data is entered/selected from the drop downs

  1. #1
    Registered User
    Join Date
    08-30-2017
    Location
    SHEFFIELD,ENGLAND
    MS-Off Ver
    2016
    Posts
    37

    Move cursor to the right automatically after data is entered/selected from the drop downs

    Hi Everyone,

    I have a sheet with a mixture of drop down lists and vlookups (to self populate some cells - left to right based on selection) and a few VBA codes in the background that adds a date and time entry when data is entered in specific cells and so, again to self populate the sheet with information.

    My question is this

    I would like a VBA code that will move the cursor to the next available empty cell to the right in the same row which is activated when either data is selected from the drop down lists or when data is entered manually. Where there's data already entered (already populated by vlookups for example) I want the cursor to move to the next available empty cell. This is not to exceed beyond column O (columns P,Q,R are hidden). Once the cursor reaches column O and see's there's data in it I want the cursor to start again from column B on a new row. Makes sense?

    The workbook has already a portion of data in it, all of which the cells are full (no blanks)

    In terms of cursor movement - I know the easiest method is to change the Excel Advance settings for the workbook. This works fine if you were entering data manually however, I have multiple drop down lists for user to select from. Therefore this method doesn't work for me.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Move cursor to the right automatically after data is entered/selected from the drop do

    Here is a very simple example of using the worksheet_change event.

    Enter something in Column A to start the code in the attached example workbook.

    The con of using the send keys is that the "Num Lock" key will eventually go off if you have too many "sendkeys" in a row.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-30-2017
    Location
    SHEFFIELD,ENGLAND
    MS-Off Ver
    2016
    Posts
    37

    Re: Move cursor to the right automatically after data is entered/selected from the drop do

    Hi Dave,

    I'm a bit of a simpleton

    To repeat along to the next columns do I simply just change the Column No and Offset ? for example

    Please Login or Register  to view this content.
    Thanks

    Slosh :-)

  4. #4
    Registered User
    Join Date
    08-30-2017
    Location
    SHEFFIELD,ENGLAND
    MS-Off Ver
    2016
    Posts
    37

    Re: Move cursor to the right automatically after data is entered/selected from the drop do

    Thanks Dave

    I cracked it !!!! - process of elimination

    Please Login or Register  to view this content.
    Thanks for the steer !!!

    Much appreciated

    Slosh :-)

+ 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. need function or macro to move the cursor to the selected cell.
    By Giri.hb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2016, 06:06 AM
  2. Macro to populate the tables from Pivots, when values are selected from drop downs.
    By pavan5183 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 10:42 AM
  3. Automatically Move Cursor After Keyng Data
    By bobbby1949 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 04-20-2011, 03:29 PM
  4. Having the cursor automatically move to the cell to the right
    By bobbby1949 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-23-2010, 08:04 PM
  5. Fill cell based on values entered from two drop downs
    By foo.mac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2009, 02:40 PM
  6. Drop downs plus selected text
    By b1nuzz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2007, 07:34 AM
  7. Replies: 1
    Last Post: 08-26-2005, 03: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