+ Reply to Thread
Results 1 to 17 of 17

Move right without using Enter, after typing one (1) character in cell

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Move right without using Enter, after typing one (1) character in cell

    Hi.
    I need to create an action on cells A1 to H1.
    Can you type just one character in the cell and without pressing the ENTER key, move to the cell on the right side? this effect should run for cells A1 to H1.

    Thank you!
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    Which character(s)?
    Gary's Student

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.

    Only one (1) digit in cell

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    So if the user selects any cell in the range A1 thru H1 and then touches any of the keys {0 thru 9} then that key should be entered in the cell and the next cell should be selected??

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.

    if I type any letter or number (since that is only 1 digit) in "A1" code vain move to "B1" it without using the Enter key and without using the TAB key.
    and so on until "H1"

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Move right without using Enter, after typing one (1) character in cell

    How has Excel or VBA to know, which value should be in which cell?

    I don't think it's posible what you want.

    Maybe you can use cel a1 for the input, and use VBA to divide it over the cells (a1 - h1)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Move right without using Enter, after typing one (1) character in cell

    cant see it myself,you need enter to let excel know that something has happened
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    The attached example is only for keys 0, 1, 2, 3

    You will have to program the remaining keys yourself.
    In a standard module enter:

    Please Login or Register  to view this content.
    In the worksheet code area, enter the following event macro:

    Please Login or Register  to view this content.
    The idea is to use OnKey to call the insert subs directly from keystrokes.
    Attached Files Attached Files
    Last edited by Jakobshavn; 11-17-2012 at 10:37 AM.

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.
    thanks, but not that.

    Even so your macro does not work.

    I do not want to shake the Keypad Enter the code will do it for me.
    Another thing, I want to type using any key on my keyboard, but only one key per cell without hit enter.

  10. #10
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    You are correct! For some reason, OnKeys does not detect a 1 from the numeric keypad, only a 1 from the second row of keys. I don't know why.
    Last edited by Jakobshavn; 11-17-2012 at 12:46 PM.

  11. #11
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.
    anyone have any more ideas?
    thank you

  12. #12
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    I found a way to make OnKey recognize the numeric keypad, but to really use my technique, you would need a separate macro for each key on the keyboard!

    This is not practical.

    Consider using some kind of UserForm.

  13. #13
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.
    So I have to leave this topic, since there is no ways to solve it.

    Thank you!

  14. #14
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.

    is a hope that someone may try another way to do this?
    Thank you!!

  15. #15
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    It may be possible with an event macro in a UserForm.

  16. #16
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Move right without using Enter, after typing one (1) character in cell

    Hi.

    you can send me an example?
    Thank you!!

  17. #17
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Move right without using Enter, after typing one (1) character in cell

    I will have to do some research. I am a novice at UserForms.

+ 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