Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I am trying to create an if statement that will execute code if a particular worksheet tab is any color other than red.
I have tried this ...
but is errs with a "Subscript out of range" error with that line though.
The worksheet "Master" exists in the active workbook. It's tab is not red, so the code following the if statement should be execute.
Please help?
I have tried this ...
Code:
If Worksheets("Master").Tab.color <> vbRed Then
but is errs with a "Subscript out of range" error with that line though.
The worksheet "Master" exists in the active workbook. It's tab is not red, so the code following the if statement should be execute.
Please help?