PC Review


Reply
Thread Tools Rate Thread

Column shading color based on specific cell content

 
 
bliten_bsas
Guest
Posts: n/a
 
      30th Oct 2006
Hi all, I'm trying to write a macro that shades a specific range of
columns depending on the contents of another cell. For example, I want
to shade in green all columns whose date (that's the column heading) is
less or equal to a specific date to be inputed in another cell. How can
I do that??

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RlZmk=?=
Guest
Posts: n/a
 
      30th Oct 2006
Conditional formatting will do that for you!
Select columns in your specific range (say A:G, let the cell containing the
date input H1)!
Formats/Conditional formatting/formula: =A$1<=$H$1
Choose green background!

Regards,
Stefi

„bliten_bsas” ezt *rta:

> Hi all, I'm trying to write a macro that shades a specific range of
> columns depending on the contents of another cell. For example, I want
> to shade in green all columns whose date (that's the column heading) is
> less or equal to a specific date to be inputed in another cell. How can
> I do that??
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I automatically color a row based on cell content Ed Microsoft Excel Worksheet Functions 1 8th Jan 2010 01:06 AM
how to find and replace content of a specific cell based on its ad IVUSKA Microsoft Excel Misc 4 5th Nov 2008 03:13 PM
specify a specific column to input text based on another cell's content jsd219 Microsoft Excel Programming 14 27th Oct 2006 11:04 PM
Column based cell shading rbmcc Microsoft Excel Programming 4 6th Apr 2006 06:27 PM
How to change cell color based on content J144 Microsoft Excel Discussion 2 26th Mar 2006 06:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 AM.