Closed Thread
Results 1 to 6 of 6

controlling excel input move cursor right, then down

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    2

    controlling excel input move cursor right, then down

    I am a new vba programmer, and not very good yet. I am trying to make an excel2010 worksheet code that will allow me to input data into a highlighted cell and after I hit return, the highlight should move to the cell to the right, then after hitting return in that cell I want the cursor to move down a row and back 1 cell, then repeat....I've tried if/then loops, and for loops, but can't figure it out. I can get the input to move right by using Target.Offset(0, 1).Select
    Last edited by lippywon; 01-12-2011 at 07:44 PM.

  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
    48,117

    Re: controlling excel input move cursor right, then down

    In the worksheet module, try something like:

    Please Login or Register  to view this content.


    Regards
    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
    Registered User
    Join Date
    01-12-2011
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: controlling excel input move cursor right, then down

    TM Shucks. THANK YOU! Brilliant! (can I keep you on retainer?)
    thanks,

    ...Lippy!

  4. #4
    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
    48,117

    Re: controlling excel input move cursor right, then down

    You're welcome. Thanks for the feedback.

  5. #5
    Registered User
    Join Date
    06-16-2012
    Location
    Louisville, Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Re: controlling excel input move cursor right, then down

    Quote Originally Posted by TMShucks View Post
    In the worksheet module, try something like:

    Please Login or Register  to view this content.


    Regards
    I'm new to Excel and ran across this excellent solution for getting the cursor to move right and down. My question is how do you get it to work for three or four columns across, and then back to the beginning column? This presumes that each row will begin at column A.

    Thanks in advance.

    trc310

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: controlling excel input move cursor right, then down

    Trc310,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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