Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
change fill color of a range of cells based on color of a cell? DarMelNel Excel Programming 0 March 2nd 06 06:35 PM
How to change the default Border, Font Color, and Cell Color Elijah Excel Discussion (Misc queries) 3 November 2nd 05 11:52 PM
Allow users to change the color of the comment indicator color so. DanC Excel Discussion (Misc queries) 1 February 25th 05 05:15 PM
Browse Forms Controls and change TextBox color based on cell color StefanW Excel Programming 2 November 21st 04 07:06 PM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"