Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing a cell color....

Hi,
Can someone help me how can I change a cell color using the"IF" command???
Thank you,
Shaul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing a cell color....

In the worksheet, you can't

in a vba routine (not used as a function in a worksheet)

if condition then
activeCell.Interior.ColorIndex = 5
End if
--
regards,
Tom Ogilvy

"Shaul" wrote in message
...
Hi,
Can someone help me how can I change a cell color using the"IF"

command???
Thank you,
Shaul




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Changing a cell color....

Shaul,

In the worksheet you can do this with Conditional Formatting.

--
sb
"Shaul" wrote in message
...
Hi,
Can someone help me how can I change a cell color using the"IF"

command???
Thank you,
Shaul




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
Changing the color of a cell based on the color of another cell. LATC Excel Discussion (Misc queries) 7 December 4th 09 09:49 PM
Changing cell color by value jgaard Excel Worksheet Functions 2 February 17th 08 03:24 PM
Changing Cell Color Spz Excel Discussion (Misc queries) 2 December 5th 07 08:46 AM
Changing color of cell Noelsy New Users to Excel 1 December 1st 07 05:13 AM
Changing cell color Alf Excel Worksheet Functions 2 August 23rd 07 07:34 PM


All times are GMT +1. The time now is 10:40 PM.

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

About Us

"It's about Microsoft Excel"