A
Andrew
Product: Excel 97 SR-2
I know that if I right-click on a worksheet tab, and click
the 'View Code' option, a VB editor shows up and I can
enter the folowing:
Private Sub Worksheet_Change(ByVal Target As Range)
'
'Enter VB commands to do something when worksheet
changes
'
'
End Sub
However, being totally self-taught from the on-line help,
I'm having difficulty trying to find a way so commands are
executed instead of whenever a change is made somewhere on
the entire worksheet, rather only when a change occurs
within a named range of cells within the worksheet. Maybe
something like...
Private Sub Worksheet_Change(ByVal Target As Range)
'
'if Range("DataRange").Change
'then
'Enter VB commands to do something when range
changes
'endif
'
'
End Sub
Or is there some way to define the "Target" range?
The named range "DataRange" is located on Worksheet
(1).Range("B2:B52")
Any Excel / VB experts out there that could give me some
help?
- Andrew
I know that if I right-click on a worksheet tab, and click
the 'View Code' option, a VB editor shows up and I can
enter the folowing:
Private Sub Worksheet_Change(ByVal Target As Range)
'
'Enter VB commands to do something when worksheet
changes
'
'
End Sub
However, being totally self-taught from the on-line help,
I'm having difficulty trying to find a way so commands are
executed instead of whenever a change is made somewhere on
the entire worksheet, rather only when a change occurs
within a named range of cells within the worksheet. Maybe
something like...
Private Sub Worksheet_Change(ByVal Target As Range)
'
'if Range("DataRange").Change
'then
'Enter VB commands to do something when range
changes
'endif
'
'
End Sub
Or is there some way to define the "Target" range?
The named range "DataRange" is located on Worksheet
(1).Range("B2:B52")
Any Excel / VB experts out there that could give me some
help?
- Andrew