Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting with more than 3 options

Dear Team

Kindly provide me the way , hat how can i use conditional formatting
with more than 3 options.

Manish ASwal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Conditional Formatting with more than 3 options

Hi

It can be done by VBA, but we need more details to guide you.

What's the target range? Which options? etc.

Regards,
Per

"aswal" skrev i meddelelsen
...
Dear Team

Kindly provide me the way , hat how can i use conditional formatting
with more than 3 options.

Manish ASwal


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Conditional Formatting with more than 3 options


You can use Select Case statement like this:

Code:
--------------------
Dim Cel As Range
For Each Cel In Range("A1:E41") '''change the range to suit
*Select* *Case* Cel.Value
*Case* Is =""
Cel.Interior.ColorIndex = xlNone
*Case* Is = "1"
Cel.Interior.ColorIndex = 3
*Case* Is = "2"
Cel.Interior.ColorIndex = 5
*Case* Is = "3"
Cel.Interior.ColorIndex = 6
''''''The above *case* is statement can just be extended for as many as you need
End *Select*
Next Cel

--------------------
aswal;194784 Wrote:
Dear Team

Kindly provide me the way , hat how can i use conditional formatting
with more than 3 options.

Manish ASwal



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=53723

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
Conditional Formatting with 3 Criteria Options Nickle Excel Worksheet Functions 5 March 19th 10 04:57 AM
I need more that 3 Conditional Formatting Options TJ Russell Excel Discussion (Misc queries) 2 July 10th 06 06:28 PM
Formatting chart options Rugbynut Excel Discussion (Misc queries) 0 June 21st 06 09:36 AM
Conditional Formatting options smith.james0 Excel Discussion (Misc queries) 4 June 28th 05 11:15 PM
How do I set up a conditional format with more than three options. HSD Excel Worksheet Functions 2 March 10th 05 09:46 AM


All times are GMT +1. The time now is 11:21 AM.

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"