Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear fill color?

Status
Not open for further replies.

Crystalguru

Technical User
Oct 4, 2001
303
US
Is there a fill color called clear?

Here's what I am trying to do:

If the column A <> Horse then vbRed
else
vbclear

I don't want to use vbWhite because it completely erases the lines in excel. I am just looking for the cell not to be filled.

Thanks
 


Personally I would suggest you didn't use vbRed either. Instead use &quot;.ColorIndex = 3&quot;.

;-)



Peace!! [peace]

Mike

Didn't get the answers that you wanted? Take a look at FAQ219-2884
 
You can always declare a constant

Const Red = 3

you could then use

Selection.interior.colorindex = Red

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top