Search : in
By :

VBA conditional formatting coding in Excel!

Last answer on Sep 7, 2009 11:54:40 am BST firsttimer, on Sep 7, 2009 9:54:32 am BST 
 Report this message to moderators

Hi,
I have the following conditional formats:

=AND($J8>=N$4,$K8<=O$4,$I8=1) - turns cell green
=AND($J8>=N$4,$K8<=O$4,$I8=2) - turns cell red
=AND($J8>=N$4,$K8<=O$4,$I8=0) - turns cell black

but i need to add more so i need to use VBA coding!

Im a beginner at VBA so dont really have an idea of the coding needed!

Also, one point to note - i need these formulas to apply to a whole list of cells i.e. Cell rang L7:BO210 - so quite a lot of cells! And the values in the formulas change for each cell so for cell S13 for instance, the formulas would be:

=AND($J13>=S$4,$K13<=T$4,$I13=1) - again cell green
=AND($J13>=S$4,$K13<=T$4,$I13=2) - cell red
=AND($J13>=S$4,$K13<=T$4,$I3=0) - cell black

Any help would be great, thanks!!

Configuration: Windows XP Internet Explorer 8.0

Best answers for « VBA conditional formatting coding in Excel! » in :
Unlimited Conditional Formatting Show Unlimited Conditional Formatting Introduction Principle Code Introduction The limitation of MFC (Conditional Formatting) to Excel version 2007 is less than 3. This is very short. Having seen many applications to push the limit, I am...
Colouring cells on conditions ShowColouring cells on conditions There are many pratical functions under Excel which is not commonly used. Example: If you wish a cell automatically turns red (or other formatting border, frame etc) under one condition: a result, a...
[VBA: VB6] Using excel from another application Show[VBA: VB6] Using excel from another application Here is a little routine to call Excel from VB6 or another Office application. Paste in a general module (eg Module1) In VBA>> Insert>> Module and paste in the window ... In VB6>>...
Avoid duplicates in Excel ShowAvoid duplicates in Excel In order to avoid duplication when encoding in a column from an excel sheet: take the conditional format on the first cell under the headings (eg A2) choose the following formula:...
Download Free PowerPoint/PPT to Pdf Converter ShowIt is frequent to convert Word, Excel or image files to PDF format. But it is not very common to convert a PowerPoint file to the PDF format. PowerPoint / PPT to Pdf Converter is an application allowing to convert easily and quickly PowerPoint...
Spreadsheets - Conditional expressions ShowWhat is a Conditional Structure? Conditional structures are instructions that allow to test if a condition is true or not. Conditional structures may be associated together. To successfully execute these tests using logical functions, spreadsheets...
General Terms and Conditions of Use ShowAll Rights Reserved - 2009 - Communitic International Object These General Terms and Conditions are meant to define the ways in which the services of the website en.kioskea.net, hereafter "The Service," are made available, as well as the...

1

onea97, on Sep 7, 2009 11:33:26 am BST

Hi there,

follow the steps on this link:

http://www.ozgrid.com/VBA/excel-conditional-formatting-limit­.htm

thanks

Reply to onea97

2

 firsttimer, on Sep 7, 2009 11:54:40 am BST

Hi but i need the formula to change for every cell and there are over a 1000 cells...the site doesnt explain how to cater for this..

thank you for you reponse though

Reply to firsttimer