problem with interior.colorindex
On reason would be the sheet is protected. You say it isn't, but that is
really the only reason I can think of
If you are using xl97, then at the top of the code put in
ActiveCell.Activate
--
Regards,
Tom Ogilvy
"Peter Rooney" wrote in message
...
Could anyone suggest any general reasons why this code might report:
"Unable to set the colorindex property of the interior class"?
with target
blah blah blah
.Offset(0, 0).Resize(1, 10).Interior.ColorIndex = 40 'Tan Core
Infrastructure
yada yada yada
end with
I can select the range in a similar way using
.offset(0,0).resize(1,10).select, and the worksheet isn't protected.
Send me home happy for the weekend!
Thanks in advance
Pete
|