I cannot work out how to test for a sheet name in VBA.
I have four sheets and I want to do something along the following lines:
If Worksheets("Sheet1").Select = True Then Statement1 ElseIf Worksheets("Sheet2").Select = True Then Statement2 ... End If
The above does not work. Some filtering will be done depending on the current sheet name therefore I want to test for the sheet name.
Any suggestions greatly appreciated.