Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi:
I have the following worksheet based macro in VBA: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$F$5" Then Run "buttonchange" End If End Sub I want to expand the target address to F5 OR F6, and have no idea how to do it. Whatever I try $F$5:$F$6, $F$5 OR $F$6 or a myriad of variations around that come up with a compile error OR don't work! Anyone got any thoughts on this? Regards John Baker |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If Range not equal to zero in Visual Basic If/Then statement | Excel Discussion (Misc queries) | |||
Visual Basic to reference value in Excel cell | Excel Programming | |||
Visual Basic Range variable | Excel Programming | |||
Visual basic to step through range and store a value based on text attribute value. | Excel Programming | |||
Visual basic to step through range and store a value based on text attribute value. | Excel Programming |