Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Auto run a macro when a cell in workbook changes

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    17
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If cell "a1" changes, I want a macro to run automaticly. How do I write that?

    Thanks
    C. Kaloudis
    hios@interaccess.com

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Posts
    76
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-23 11:39, Kourada wrote:
    If cell "a1" changes, I want a macro to run automaticly. How do I write that?

    Thanks
    C. Kaloudis
    hios@interaccess.com
    Put this in the module for the worksheet where you want the change to be monitored:



    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
    MyMacro
    End If
    End Sub

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •