Assign COlors to Sheet Tabs

P

PMO

How do I assign a color using VBA to a sheet Tab. I have looked high
and low without any luck.
 
J

JackD

This is actually the Microsoft project newsgroup, not excel, but since you
asked, this works for me.

Sub foo()
'turn sheet1 tab to red
ActiveWorkbook.Sheets("Sheet1").Tab.ColorIndex = 3
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top