L
Laura McKittrick
Would anyone have any idea how to get this to work:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Dim cel As Range
Set isect = Application.Intersect(Target, Range("Ticks"))
If isect Is Nothing Then
Exit Sub
End If
Application.EnableEvents = False
For Each cel In isect
<do something>
Next cel
Application.EnableEvents = True
End Sub
In short, isect is the subset of the user's selection that's part of
the legal range for this operation, and I want to iterate through it,
operating on each cell individually. Problem is, there's only one
cell object in the collection. So far I can't figure out how to get
at the rest of the cells.
Thanks in advance!
Laura
Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Dim cel As Range
Set isect = Application.Intersect(Target, Range("Ticks"))
If isect Is Nothing Then
Exit Sub
End If
Application.EnableEvents = False
For Each cel In isect
<do something>
Next cel
Application.EnableEvents = True
End Sub
In short, isect is the subset of the user's selection that's part of
the legal range for this operation, and I want to iterate through it,
operating on each cell individually. Problem is, there's only one
cell object in the collection. So far I can't figure out how to get
at the rest of the cells.
Thanks in advance!
Laura