Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You've given me hope -- I'll try it later
Doug -----Original Message----- Hi you need an event procedure for this. E.g. use the worksheet change event for this. Put the following code in your worksheet module (tests cell A1): Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub On Error GoTo CleanUp: With Target If .value then Application.EnableEvents = False ' enter your code or call a different sub end if End With CleanUp: Application.EnableEvents = True End Sub -- Regards Frank Kabel Frankfurt, Germany Douglas wrote: Here it is: 1. I have a muti-sheet workbook 2. I have buttons on several sheets that call Subroutines that assign default values -- they work fine. The problem: How can I run one of those macros/Sub automatically when some cell goes, say TRUE to FALSE? Specifically, from Sheet1 I want to run the code attached to Button2 on Sheet2. Help, Doug . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel code to call a macro when a certain value in a cell isselected. | Excel Worksheet Functions | |||
Macro to automate page protection based on combo box reply | Excel Discussion (Misc queries) | |||
Call a macro or sub based on the name of a cell? | Excel Programming | |||
Call a macro or sub based on the name of a cell? | Excel Programming |