Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell change to trigger Macro
How can I trigger a Macro when the value in a cell is changed?
Or can I have my macro triggd if any cell on my workshhet is changed? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell change to trigger Macro
Hi Sören, Yes, with an event macro stored inthe module of the respectiv worksheet: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$10" Then '<<<< change cell to suit you needs yourcode End Sub HTH Cheers Cari -- Cari ----------------------------------------------------------------------- Carim's Profile: http://www.excelforum.com/member.php...fo&userid=3325 View this thread: http://www.excelforum.com/showthread.php?threadid=53179 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cell change to trigger Macro
Hi Carim,
Thanks for the help. It works very good. I have also tested to skip the If-statment to get it to trigg on all type of changes in the worksheet. But it does not work so good. It hangs Excel at 100% CPU-load. So I skip that. BR, /Sören "Carim" wrote: Hi Sören, Yes, with an event macro stored inthe module of the respective worksheet: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$A$10" Then '<<<< change cell to suit your needs yourcode End Sub HTH Cheers Carim -- Carim ------------------------------------------------------------------------ Carim's Profile: http://www.excelforum.com/member.php...o&userid=33259 View this thread: http://www.excelforum.com/showthread...hreadid=531794 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Trigger Event on Format Change | Excel Discussion (Misc queries) | |||
Cell value change to trigger macro (worksheet change event?) | Excel Programming | |||
Trigger an event on Checkbox change | Excel Programming | |||
Trigger an event on Checkbox change | Excel Programming |