+ Reply to Thread
Results 1 to 6 of 6

Move to next colume after return....

  1. #1
    Registered User
    Join Date
    12-01-2010
    Location
    socal
    MS-Off Ver
    Excel 2007
    Posts
    3

    Move to next colume after return....

    Hey guys, nice forum! I did a quick search, but was unable to find an answer

    For example: I need a macro that starts at A1 and when I input data and press return, it will move to B1 and then I input data press return immediately it should go to A2 and repeat thus process for as long as I need.

    It would wonderful if someone can help me out with this.

    I bought a digital measuring caliper with USB and all it does is go to the next line after the button is pushed

    Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Move to next colume after return....

    This isn't a macro thing, it's a "plan ahead" thing.

    1) Highlight a range of cells in A:B, like A2:B10

    2) Type in the first highlighted cell

    3) When you press ENTER, the cursor will go from A2 to B2, then from B2 to A3, etc, just like you want.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-01-2010
    Location
    socal
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Move to next colume after return....

    Quote Originally Posted by JBeaucaire View Post
    This isn't a macro thing, it's a "plan ahead" thing.

    1) Highlight a range of cells in A:B, like A2:B10

    2) Type in the first highlighted cell

    3) When you press ENTER, the cursor will go from A2 to B2, then from B2 to A3, etc, just like you want.
    Hi Jerry, thanks for the quick response

    I tried what you said, however it doesn't go from A2 to B2 after the return, it keep down down the line and will go to B2 once it reach the bottom of the highlight
    Last edited by legendr34; 12-01-2010 at 07:14 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Move to next colume after return....

    Check your Tools > Options > Edit and make sure the "Move selection after Enter" is set to the direction you want.

    Or, by default, excel goes Down for ENTER but it goes to the Right for TAB.

  5. #5
    Registered User
    Join Date
    12-01-2010
    Location
    socal
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Move to next colume after return....

    Quote Originally Posted by JBeaucaire View Post
    Check your Tools > Options > Edit and make sure the "Move selection after Enter" is set to the direction you want.

    Or, by default, excel goes Down for ENTER but it goes to the Right for TAB.
    nice, thank you Jerry

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Move to next colume after return....

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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