Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default color for last day of each month

Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default color for last day of each month

Something like this will give you all the last days of the month:

Sub test()

Dim i As Byte

For i = 1 To 12
MsgBox DateSerial(Year(Date), i, 1) - 1
Next

End Sub


RBS

"Steved" wrote in message
...
Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default color for last day of each month

Format - Conditional Formatting

I'm trying formula is

=EOMONTH(A1,0)=A1
and I think it should work. I'm getting an error "You may not use
references to other worksheets or workbooks for Conditional Formatting
criteria". Maybe someone else can assist.

"Steved" wrote in message
...
Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default color for last day of each month

Thankyou

"Steved" wrote:

Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default color for last day of each month

On Wed, 11 Jan 2006 16:01:02 -0800, Steved
wrote:

Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.



You can use conditional formatting. "Formula Is:"

One formula that will return TRUE if the date in the cell is the last day of
the month is:

=MONTH(A1)<MONTH(A1+1)


--ron


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default color for last day of each month

On Wed, 11 Jan 2006 19:17:33 -0500, "Barb Reinhardt"
wrote:

Format - Conditional Formatting

I'm trying formula is

=EOMONTH(A1,0)=A1
and I think it should work. I'm getting an error "You may not use
references to other worksheets or workbooks for Conditional Formatting
criteria". Maybe someone else can assist.



That won't work because EOMONTH is an ATP function, which is presently in a
separate workbook. I understand the ATP functions will become part of Excel in
Excel 12.

Try: =Month(a1)<Month(a1+1)


--ron
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default color for last day of each month

Hello from Steved

Thankyou.

"Ron Rosenfeld" wrote:

On Wed, 11 Jan 2006 16:01:02 -0800, Steved
wrote:

Hello from Steved

I have an 12 month excel calendar

I would like to have the last day of each month have a light yellow.

If this is possible how.

Thankyou.



You can use conditional formatting. "Formula Is:"

One formula that will return TRUE if the date in the cell is the last day of
the month is:

=MONTH(A1)<MONTH(A1+1)


--ron

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
sumif color cells with same month eva cheng Excel Discussion (Misc queries) 2 May 7th 10 07:00 PM
Formula for CF to color current month computexcel Excel Discussion (Misc queries) 2 September 11th 08 03:46 AM
Auto Chg Tab Color vs Current Month Ken Excel Discussion (Misc queries) 4 March 14th 07 08:55 PM
Change Cell Color if in current Month Leslie Excel Worksheet Functions 6 June 28th 05 06:17 PM
Show month in different color? OneGoose Excel Discussion (Misc queries) 1 June 1st 05 06:08 AM


All times are GMT +1. The time now is 09:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"