+ Reply to Thread
Results 1 to 5 of 5

How make macro run if entry made in a particular cell

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    How make macro run if entry made in a particular cell

    I have a macro that works perfect. What I want is for this macro to be run when a new value has been entered into cell D9.

    Is there such a function that can be used for 1 cell only, such as "On_Enter" ?
    Last edited by Launchnet; 09-19-2010 at 08:01 PM.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: How make macro run if entry made in a particular cell

    Look at the worksheet change event

    Please Login or Register  to view this content.

    Regards

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How make macro run if entry made in a particular cell

    What or how does this macro get activated ?

    I call my macro from your macro and when I make an entry into D9, nothing happens.

    Then I placed Stop after row 2 and the macro does not even start.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: How make macro run if entry made in a particular cell

    Copy the event code above
    In your Excel workbook:
    Right click on the tab for the sheet where you want the event trapped
    Choose "View Code"
    Paste the code

    Close the VB Editor

    Make a change to cell D9

    Regards

  5. #5
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How make macro run if entry made in a particular cell

    Hi TM . . .

    Works ! Thanks very much.

+ 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