I want to copy an existing sheet, rename it, and make the tab color of the new sheet "No Color". I've recorded a macro to do this, but when I run it, it errors. Run-time error '9' Subscript out of range. Debug highlights this line: .ColorIndex = xlAutomatic
The macro runs fine when this line is changed manually to:
.ColorIndex = xlColorIndexNone
***Post
moved by the moderator to the appropriate forum category.***