LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
sot sot is offline
external usenet poster
 
Posts: 19
Default VB for A conditional formatting exercise

I have to be able to format specific cells with a background colour if they
match a particular condition. I can use Conditional Formatting, but I need
more than 3 format options. Below are the formulae I am want to use
=AND(O$3=$C5,O$3<=$D5) green
=AND(O$3=$F5,O$3<=$G5) grey
=AND(O$3=$I5,O$3<=$J5) blue
=AND(O$3=$L5,O$3<=$M5) yellow

So for example O5 should be green if condition =AND(O$3=$C5,O$3<=$D5) is met.

The outcome is to help with creating a sort of a gant chart. I am sure this
could be done with VB, but I am only just starting out with it. Any pointers
or help with the code would be gratefully received.


 
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
training exercise littlebit New Users to Excel 2 October 7th 06 06:17 PM
Translation Exercise ... Rebecca Excel Worksheet Functions 9 June 6th 06 09:18 PM
massive sorting exercise! Little pete Excel Programming 2 March 3rd 06 08:01 AM
Lottery exercise Gary''s Student Excel Worksheet Functions 1 December 5th 05 07:20 PM
A 13 period exercise Steved Excel Worksheet Functions 1 August 9th 05 09:29 AM


All times are GMT +1. The time now is 03:04 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"