Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro for Condicitional Format

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 257
Default Macro for Condicitional Format

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.

--- "Wskip" wrote:
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.

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
vb macro format is wrong what which is up New Users to Excel 5 February 23rd 10 10:25 PM
Format a macro button Rickster Excel Discussion (Misc queries) 1 November 17th 09 02:31 PM
Macro to convert mmddyyyy format into mm/dd/yyyy format maijiuli Excel Programming 2 March 10th 08 11:58 PM
format in macro brian thompson3001 via OfficeKB.com Excel Discussion (Misc queries) 1 December 20th 06 11:57 AM
format macro Jonathan Cooper Excel Discussion (Misc queries) 5 January 9th 06 08:49 PM


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