Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to set the background of a cell in Excel depending on a condition.
I've tried two methods: If intVal = 3 Then CDRLWs.Range("a1").Font.Background = 3 End If If intVal = 3 Then CDRLWs.Range("a1").Font.Background = "Red" End If Neither are working. Any suggestions? Thanks in Advance! ~Elena |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
CDRLWs.Range("A1").Interior.Colorindex = 3
HTH -- AP "Elena" a écrit dans le message de news: ... I want to set the background of a cell in Excel depending on a condition. I've tried two methods: If intVal = 3 Then CDRLWs.Range("a1").Font.Background = 3 End If If intVal = 3 Then CDRLWs.Range("a1").Font.Background = "Red" End If Neither are working. Any suggestions? Thanks in Advance! ~Elena |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The background color isn't changing. Any other ideas?
Thanks! "Ardus Petus" wrote: CDRLWs.Range("A1").Interior.Colorindex = 3 HTH -- AP "Elena" a écrit dans le message de news: ... I want to set the background of a cell in Excel depending on a condition. I've tried two methods: If intVal = 3 Then CDRLWs.Range("a1").Font.Background = 3 End If If intVal = 3 Then CDRLWs.Range("a1").Font.Background = "Red" End If Neither are working. Any suggestions? Thanks in Advance! ~Elena |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Disregard previous message. It works perfectly. THANK YOU!
"Ardus Petus" wrote: CDRLWs.Range("A1").Interior.Colorindex = 3 HTH -- AP "Elena" a écrit dans le message de news: ... I want to set the background of a cell in Excel depending on a condition. I've tried two methods: If intVal = 3 Then CDRLWs.Range("a1").Font.Background = 3 End If If intVal = 3 Then CDRLWs.Range("a1").Font.Background = "Red" End If Neither are working. Any suggestions? Thanks in Advance! ~Elena |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trouble setting background color of Worksheet | Excel Programming | |||
Need Help Setting background color in XLM Excel worksheets in Netscapeand Firefox browsers | Excel Programming | |||
Conditionally setting background color of a cell | Excel Discussion (Misc queries) | |||
Setting text as a background in cell | Excel Worksheet Functions | |||
Setting cell background color based on value | Excel Programming |