Macro for Condicitional Format

  • Thread starter Thread starter Wskip
  • Start date Start date
W

Wskip

I need to highlight between dates.
example: 9/1/2002 to 9/1/2008
9/1/2001 to 9/1/2008
9/1/2000 to 9/1/2008
I've tried to write a macro using case 1 , case 2 but to no avail.
 
Before talking about the method, today's date falls in all three of those
ranges; so which type of highlighting should it receive? Seems to me you
must correct your ranges:

before 2000-09-01
2000-09-01 through 2001-08-31
2001-09-01 through 2002-08-31
2002-09-01 through 2008-08-31
2008-01-09 and beyond

What's it to be? If you need to distinguish between only four different
ranges you don't need a program at all; you can use Conditional Formatting
(which see as an option under Format on the menu bar). That allows three
special formats for each of three special conditions (the fourth being the
normal format, you see). You can look up Conditional Formatting in the
documentation, and/or ask questions about it in the Excel Worksheet Functions
forum.

If you need more than that, you'll have to write a VBA program, in which
case you can continue the question here, after elaborating a bit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Need subtotals 12
Move cells down to match cells 3
Move cells down to match cells 1
using 1 through 9...equal 23 1
Data-Transpose Problem 1
Query logic concerning dates 6
Mileage Rates 7
Keep unique values 1

Back
Top