Sheldon Livingston
asked on
Use Excel VBA to turn tab white
Please complete this line of code to turn a tab white:
Worksheet.Tab.Color = ???
for example
Worksheet.Tab.Color = 255
will turn the tab red
Worksheet.Tab.Color = ???
for example
Worksheet.Tab.Color = 255
will turn the tab red
try to use this one
Sub example()
'Add color to the tab for "Sheet1"
Sheets("Sheet1").Tab.Color = RGB(255, 0, 0)
End Sub
ASKER
Figured it out...
Worksheet.Tab.Color = RGB(255, 255, 255)
This will turn a tab white.
Worksheet.Tab.Color = RGB(255, 255, 255)
This will turn a tab white.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for classnet's comment #a40848369
for the following reason:
Figured out myself
Accepted answer: 0 points for classnet's comment #a40848369
for the following reason:
Figured out myself
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This answer lead me to the solution...
You can also use , much easier to remember. Also, vbRed, vbBlue etc.
ActiveSheet.Tab.Color = vbWhite
Open in new window