Commandbutton for moving to a selected cell in a sequence

  • Hello friends,


    I need a button that will allow me to change my selected cell in a sequenced order each time I click the button.


    For instance, I want to start on E4, click to move to E5, click to move to E6 and so on. After I get to E15, I need to move to F15 and start moving up one cell after each click. This sequence will continue up and down until I reach T15.


    Lastly, a separate button to move back to the previous cell would be nice.


    Thanks for you help in advance!

  • Hi,


    You could be using the tab key .... to have your cursor behave as required ...and get your tab order for data entry ...


    see following link :


    http://www.vbaexpress.com/kb/getarticle.php?kb_id=364


    Hope this will help

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • So I found my error and was able to use this code. However, regardless of which order I type the cells in, it starts at the top of the page once it reaches the bottom cell. I need it to snake.

  • Glad you could fix your problem ...:wink:


    Should you need to further amend your code ... would recommend to post your current macro ...:smile:

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!