chirayu
Well-Known Member
Hi All,
This is with regards to the below Case Statement
Currently under the case argument I have specified my values i.e. Site1/Site3/Site9.
Is it possible instead to use a given range in the macro so that I don't need to keep manually typing in my values in the macro itself whenever change is needed? e.g.
This is with regards to the below Case Statement
Code:
Select Case ActiveCell.Value
Case "Site1", "Site3", "Site9"
Rows(ActiveCell.Row).Select
Selection.Delete
ActiveCell.Offset(0, 1).Select
Case Else
ActiveCell.Offset(1, 0).Select
End Select
Loop
Currently under the case argument I have specified my values i.e. Site1/Site3/Site9.
Is it possible instead to use a given range in the macro so that I don't need to keep manually typing in my values in the macro itself whenever change is needed? e.g.
Code:
Worksheets("Sheet1").Range("A1:A3").Value