+ Reply to Thread
Results 1 to 5 of 5

Go from cell A1 to cell C7 by clicking enter

  1. #1
    Registered User
    Join Date
    12-29-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    Go from cell A1 to cell C7 by clicking enter

    Hello

    I want to write a code where I start in cell A1 and when I press enter, I will go to cell C7.

    Can anyone help me to write this code?

    Greetings
    Last edited by Wedstrijd; 12-30-2013 at 08:50 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Go from cell A1 to cell C7 by clicking enter

    Hi, Wedstrijd,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...ess-enter.html

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Go from cell A1 to cell C7 by clicking enter

    HaHoBe, thank you for picking up the cross-post.

    Wedstrijd, welcome to the Forum. Please take the time to review our rules. There aren't many, and they are all important.

    Are you pressing Enter after you update the content of the cell? Or just changing your selection?

    The Worksheet_Change event will detect if you change the content of A1 when you hit enter, and that event can move the selection to C7.

    Please Login or Register  to view this content.
    There is also a SelectionChange event, but it only tells you where the new selection is, not where you came from. So if the user selects A1 then immediately hits Enter, there is no way to tell that he has done so (that I know of).

    I suppose another more complicated alternative might be to trap the ENTER keyup event but I do not have experience with keyboard events.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    12-29-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Go from cell A1 to cell C7 by clicking enter

    @HaHoBe
    I didn't know that crosspost wasn't allowed.
    I excuse me for this.
    In the future this will not happen again.
    I will also read the rules very carefully.

    @6StringJazzer
    Thanks for your reaction
    I will implement this in Excel

  5. #5
    Registered User
    Join Date
    12-29-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Go from cell A1 to cell C7 by clicking enter

    @6StringJazzer
    It works
    Thank you

+ 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. [SOLVED] Enter current Time by clicking in cell
    By WFP111 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2013, 08:52 AM
  2. Replies: 1
    Last Post: 02-07-2012, 07:09 AM
  3. Replies: 3
    Last Post: 03-09-2006, 05:40 PM
  4. Replies: 0
    Last Post: 03-06-2006, 11:10 PM
  5. Replies: 2
    Last Post: 03-06-2006, 09:45 AM

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