Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Conditional Format Macro fails to set interior color - HELP!!!

Cell B3 has a data validation dropdown list.
When I change the selection it triggers a function on for that
worksheet object:

Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case Range("ModType").Address
ValidateCoding
End Select
End Sub

Where ModType is the range name for B3

The ValidateCoding routine lincludes:

With Range("Coding")
.FormatConditions.Delete
.FormatConditions.Add Type:=xlExpression,
Formula1:=formatstring
.FormatConditions(1).Interior.ColorIndex = 3
End With


where the "Coding" range refers to cell B4.

The formula part of the conditional formatting works fine, but I cannot
seem to get the FormatConditions(1) to accept a color. If I run the
same command directly as a subroutine it works fine???

HELP!
Thanks in advance!
joe

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to set cell interior color? imoose Excel Discussion (Misc queries) 4 July 8th 08 11:36 PM
No Interior Color Macro simplymidori[_2_] Excel Discussion (Misc queries) 1 April 11th 08 05:01 AM
Interior Color Macro Phil H[_2_] Excel Programming 4 March 10th 06 10:29 AM
Help!! Instead of Conditional Formatting, pull interior color from lookup bhumvee Excel Programming 0 June 1st 04 05:21 PM
Conditional formatting & interior color Paul S Panoff Excel Programming 2 April 22nd 04 09:38 PM


All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"