+ Reply to Thread
Results 1 to 2 of 2

Thread: Run Macro on Cell Change

  1. #1
    Forum Contributor
    Join Date
    08-23-2010
    Location
    Staten Island, NY
    MS-Off Ver
    Excel 2003
    Posts
    180

    Run Macro on Cell Change

    I want to be able to run a Macro whenever someone makes a change to a Particular Cell. Is this possible and if so How? It would work best if it can run when exiting the cell?

  2. #2
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,342

    Re: Run Macro on Cell Change

    Hi
    This worksheet event maybe useful for you

    
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Range("YourCellAddress"), Target) Is Nothing Then
            'Run Your Macro
        End If
    End Sub
    How to Save a Workbook Event Macro
    1. Copy the macro using CTRL+C keys.
    2. Open your Workbook and Right Click on any Worksheet's Name Tab
    3. Left Click on View Code in the pop up menu.
    4. Paste the macro code using CTRL+V
    5. Save the macro in your Workbook using CTRL+S
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

+ 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.2.0