ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change color of Tab (https://www.excelbanter.com/excel-programming/362830-change-color-tab.html)

Sumesh

Change color of Tab
 
HI,
I want to change the color of selected Tab at run time. With static Excel
Sheet I know I can select the Tab(Sheet NAme), right click on it and change
the color. But how can i do the same thing programatically?
Thanks in advance

Harald Staff

Change color of Tab
 
Try recording a macro while doing it manually, and you have it.

HTH. Best wishes Harald

"Sumesh" skrev i melding
...
HI,
I want to change the color of selected Tab at run time. With static Excel
Sheet I know I can select the Tab(Sheet NAme), right click on it and

change
the color. But how can i do the same thing programatically?
Thanks in advance




Chip Pearson

Change color of Tab
 
Try something like

ActiveSheet.Tab.ColorIndex = 3 'red


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Sumesh" wrote in message
...
HI,
I want to change the color of selected Tab at run time. With
static Excel
Sheet I know I can select the Tab(Sheet NAme), right click on
it and change
the color. But how can i do the same thing programatically?
Thanks in advance





All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com