+ Reply to Thread
Results 1 to 3 of 3

Run macro when enter key pressed in certain range

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Run macro when enter key pressed in certain range

    I need to be able to run a macro called "Daily_Fuel_Line_Save2" when the enter key is pressed in any cell in the range A10:F10, but I still need to be able to use the tab key between the individual cells and change values in this range before starting the macro.

    I already have the following code on the sheet which I would also like to keep.

    Please Login or Register  to view this content.
    Can anyone help me with this issue??

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Run macro when enter key pressed in certain range

    Hello mr_mango81,

    This should now do what you want...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-05-2013
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Run macro when enter key pressed in certain range

    Thanks Leith, but the enter key doesn't seem to run the macro when pressed in any of the cells the in the range A10:F10. The other part of the code still seems to work fine though.

+ 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. Run a macro when Enter or Tab key is pressed
    By anandvh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2017, 10:54 PM
  2. Run a macro when Enter is pressed
    By Speclt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-19-2011, 01:17 AM
  3. Run a macro everytime enter is pressed
    By mr_teacher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2008, 01:22 PM
  4. Run a macro when 'Enter' is pressed?
    By jcup in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2007, 02:11 PM
  5. How to execute a macro everytime ENTER key is pressed
    By barrington in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2007, 04:22 PM

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