O
ordnance1
My problem here is of course in line 1. I need the code to run based on what
worksheet is active. There will be a series of these if statements (if May
is active I will select May - September and so on). So is there any way to
write the first line to determine the active worksheet?
Sub Macro2()
If Worksheets("April").Active = True Then
Sheets(Array("April", "May", "June", "July", "August",
"September")).Select
End If
End Sub
worksheet is active. There will be a series of these if statements (if May
is active I will select May - September and so on). So is there any way to
write the first line to determine the active worksheet?
Sub Macro2()
If Worksheets("April").Active = True Then
Sheets(Array("April", "May", "June", "July", "August",
"September")).Select
End If
End Sub