+ Reply to Thread
Results 1 to 2 of 2

Run Macro by Pressing Enter Key

  1. #1
    Registered User
    Join Date
    02-27-2009
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Run Macro by Pressing Enter Key

    Hi,
    I have a macro and I would like it to run when the user presses enter after inputing data into a certain cell. Is there any way to do this?
    Thanks
    Last edited by styre; 12-02-2009 at 04:00 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Run Macro by Pressing Enter Key

    Try something like this.

    Please Login or Register  to view this content.
    It needs to be pasted into the appropriate sheet tab in the VBA editor (Alt F11) and edited to change the target cell and macro name as necessary. The EnableEvents lines are in there to prevent the macro firing again if your other macro changes the value of any cells on the sheet.
    Martin

+ 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