Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I'm just starting to work with VBA and below are my codes. I would need several routine like this one on the same worksheet but VBE won't let me ( Can't have more than 1 worksheet_change ). Can anyone help me ? Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Not Application.Intersect(Target, Range("B1")) Is Nothing Then If Range("B1") = "on" Then Me.Shapes("Autoshape 5").Visible = True If Range("B1") = "off" Then Me.Shapes("Autoshape 5").Visible = False End If If Range("B1") = "on" Then Range("A12").Value = "Please go to the next Question" End If If Range("B1") = "off" Then Range("A12").Value = "" Range("B1").Value = "" End If Range("B1").Select Application.EnableEvents = True End Sub Best regards John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
WorkSheet_Change event | Excel Programming | |||
Worksheet_Change Event | Excel Programming | |||
How do I change a Worksheet_change event to a beforesave event? | Excel Programming | |||
Worksheet_Change Event | Excel Programming | |||
Worksheet_Change Event | Excel Programming |