Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Change worksheet tab colors failing

I'm using the following code to clear the colors from a worksheet tab and am
getting a "Subscript out of range" error:
Sheets("aaaDetail").Range("$A$1").Select
Sheets("aaaDetail").Tab.ColorIndex = xlAutomatic

The first statement selects cell A1 fine, but the second errors.

I appreciate your help, -John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Change worksheet tab colors failing

from
Sheets("aaaDetail").Tab.ColorIndex = xlAutomatic
to
Sheets("aaaDetail").Tab.ColorIndex = -4142

"John" wrote:

I'm using the following code to clear the colors from a worksheet tab and am
getting a "Subscript out of range" error:
Sheets("aaaDetail").Range("$A$1").Select
Sheets("aaaDetail").Tab.ColorIndex = xlAutomatic

The first statement selects cell A1 fine, but the second errors.

I appreciate your help, -John

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
Colors on worksheet change when printing NWO Excel Discussion (Misc queries) 0 February 13th 09 03:13 PM
can you change the colors of a header in excel worksheet HJ Heinz Company Excel Discussion (Misc queries) 2 October 31st 07 03:36 PM
change all of the same fill colors in a worksheet bobt Excel Worksheet Functions 2 February 25th 07 01:44 PM
How do I change worksheet tab colors when it is not an option, kidmac Excel Discussion (Misc queries) 1 March 15th 06 11:46 AM
Change worksheet tab colors Rita Palazzi Excel Discussion (Misc queries) 2 July 29th 05 02:39 PM


All times are GMT +1. The time now is 12:04 PM.

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

About Us

"It's about Microsoft Excel"