excel and vba antony

Public Schedule Face-to-Face & Virtual Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Excel and VBA Antony

Excel and VBA Antony

resolvedResolved · Medium Priority · Version 2003

Robert has attended:
Project Introduction course
Project Intermediate course

Excel and VBA Antony

I am tryig to carry out conditional formatting in VBA. Colouring cells background when certain conditions are met.
When the macro is run through first time it works when run through again it returns "Run time Error '1004' Unable to set Color Index property of he interior class"
How do I stop this happening.

RE: Excel and VBA Antony

Hi Robert. Are you protecting the worksheet? If so, have a look at this:


Hope this helps,


Wed 1 Aug 2012: Automatically marked as resolved.


Training courses


Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


Excel tip:

Change Excel's default font

You can change the default font and font size for all spreadsheets created in Excel by:

1. Going to Tools on the menu bar.
2. Select Options, then General.
3. Next to Standard Font you can change the font and font size.
4. Click OK.

Each new file you start from this point onward should use the font and font size you have selected.

View all Excel hints and tips

Server loaded in 0.07 secs.