![]() |
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 |
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 |
All times are GMT +1. The time now is 03:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com