+ Reply to Thread
Results 1 to 2 of 2

Using the Enter key to increment a value in excel

  1. #1
    Registered User
    Join Date
    03-14-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Using the Enter key to increment a value in excel

    Hello,

    I have a couple of buttons in my excel spreadsheet used to scroll up and down. The macros associated with these buttons simply +1 or -1 a value in a cell elsewhere in a spreadsheet that I then read. Is there a way I could "read" the user hitting the Enter key on the keyboard instead of making the user click the buttons in my spreadsheet? I have hundreds of lines of data to graph and review and asking the user to reach for the mouse and click an up/down button is getting old fast.

    Thank you!

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Using the Enter key to increment a value in excel

    Take a look at the keypress event:
    http://msdn.microsoft.com/en-us/libr...ypress.aspx#Y0
    Last edited by tlafferty; 08-29-2012 at 03:06 PM. Reason: added link
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

+ 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