PC Review


Reply
 
 
MAX
Guest
Posts: n/a
 
      9th May 2009
Here I have a calendar where every day has 2 rows. In this example let say
that today's date is 1st January. I need that cell B2 (Highlight) will be
highlighted with any colour as I open the file and cell B3 (Details) remains
empty where I can put my details. Any help please?

Thanks in adnance.

A B C D E F
____________________________________________________
1 JAN FEB MAR APR MAY
____________________________________________________
2 1 Highlight
3 Details
_____________________________________________________
4 2
5
______________________________________________________
6 3
7
______________________________________________________
8 4
9
________________________________________________________
 
Reply With Quote
 
 
 
 
AltaEgo
Guest
Posts: n/a
 
      9th May 2009
You conditional formatting formula for cell C2 is:

=DATE(YEAR(TODAY()),TEXT(1&" "&C$1&" "&2000,"mm"),DAY($B2)) = TODAY()

NOTE: TEXT(1&" "&C$1&" "&2000,"mm") converts JAN, FEB, MAR to 01. 02, 03 for
the Date() function. It will also convert January, February, March.
--
Steve

"MAX" <(E-Mail Removed)> wrote in message
news:77DD4DEC-4CA1-489F-91E1-(E-Mail Removed)...
> Here I have a calendar where every day has 2 rows. In this example let say
> that today's date is 1st January. I need that cell B2 (Highlight) will be
> highlighted with any colour as I open the file and cell B3 (Details)
> remains
> empty where I can put my details. Any help please?
>
> Thanks in adnance.
>
> A B C D E F
> ____________________________________________________
> 1 JAN FEB MAR APR MAY
> ____________________________________________________
> 2 1 Highlight
> 3 Details
> _____________________________________________________
> 4 2
> 5
> ______________________________________________________
> 6 3
> 7
> ______________________________________________________
> 8 4
> 9
> ________________________________________________________


 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      9th May 2009
The below code will highlight the current day cell as per your calendar
layout. Place this code in workbook open event. If you have the calendar in a
default sheet you can add the sheet name as well. Launch VBE using Alt+F11.
From the treeview double click 'This Workbook' and paste this code.

Private Sub Workbook_Open()
Range("B2").Resize(62, 31).Interior.ColorIndex = xlNone
Cells(Day(Date) * 2, Month(Date) + 1).Interior.Color = vbYellow
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"MAX" wrote:

> Here I have a calendar where every day has 2 rows. In this example let say
> that today's date is 1st January. I need that cell B2 (Highlight) will be
> highlighted with any colour as I open the file and cell B3 (Details) remains
> empty where I can put my details. Any help please?
>
> Thanks in adnance.
>
> A B C D E F
> ____________________________________________________
> 1 JAN FEB MAR APR MAY
> ____________________________________________________
> 2 1 Highlight
> 3 Details
> _____________________________________________________
> 4 2
> 5
> ______________________________________________________
> 6 3
> 7
> ______________________________________________________
> 8 4
> 9
> ________________________________________________________

 
Reply With Quote
 
MAX
Guest
Posts: n/a
 
      9th May 2009


Hi Jacob
If I insert a row at the top, does the code remains the same?

Thanks in advance.


"Jacob Skaria" wrote:

> The below code will highlight the current day cell as per your calendar
> layout. Place this code in workbook open event. If you have the calendar in a
> default sheet you can add the sheet name as well. Launch VBE using Alt+F11.
> From the treeview double click 'This Workbook' and paste this code.
>
> Private Sub Workbook_Open()
> Range("B2").Resize(62, 31).Interior.ColorIndex = xlNone
> Cells(Day(Date) * 2, Month(Date) + 1).Interior.Color = vbYellow
> End Sub
>
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "MAX" wrote:
>
> > Here I have a calendar where every day has 2 rows. In this example let say
> > that today's date is 1st January. I need that cell B2 (Highlight) will be
> > highlighted with any colour as I open the file and cell B3 (Details) remains
> > empty where I can put my details. Any help please?
> >
> > Thanks in adnance.
> >
> > A B C D E F
> > ____________________________________________________
> > 1 JAN FEB MAR APR MAY
> > ____________________________________________________
> > 2 1 Highlight
> > 3 Details
> > _____________________________________________________
> > 4 2
> > 5
> > ______________________________________________________
> > 6 3
> > 7
> > ______________________________________________________
> > 8 4
> > 9
> > ________________________________________________________

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      9th May 2009
With one row on top ...I have changed B2 to C2 and the day row +1. Try the
below and feedback

Private Sub Workbook_Open()
Range("C2").Resize(62, 31).Interior.ColorIndex = xlNone
Cells(1+(Day(Date) * 2), Month(Date) + 1).Interior.Color = vbYellow
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"MAX" wrote:

>
>
> Hi Jacob
> If I insert a row at the top, does the code remains the same?
>
> Thanks in advance.
>
>
> "Jacob Skaria" wrote:
>
> > The below code will highlight the current day cell as per your calendar
> > layout. Place this code in workbook open event. If you have the calendar in a
> > default sheet you can add the sheet name as well. Launch VBE using Alt+F11.
> > From the treeview double click 'This Workbook' and paste this code.
> >
> > Private Sub Workbook_Open()
> > Range("B2").Resize(62, 31).Interior.ColorIndex = xlNone
> > Cells(Day(Date) * 2, Month(Date) + 1).Interior.Color = vbYellow
> > End Sub
> >
> >
> > If this post helps click Yes
> > ---------------
> > Jacob Skaria
> >
> >
> > "MAX" wrote:
> >
> > > Here I have a calendar where every day has 2 rows. In this example let say
> > > that today's date is 1st January. I need that cell B2 (Highlight) will be
> > > highlighted with any colour as I open the file and cell B3 (Details) remains
> > > empty where I can put my details. Any help please?
> > >
> > > Thanks in adnance.
> > >
> > > A B C D E F
> > > ____________________________________________________
> > > 1 JAN FEB MAR APR MAY
> > > ____________________________________________________
> > > 2 1 Highlight
> > > 3 Details
> > > _____________________________________________________
> > > 4 2
> > > 5
> > > ______________________________________________________
> > > 6 3
> > > 7
> > > ______________________________________________________
> > > 8 4
> > > 9
> > > ________________________________________________________

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      9th May 2009
Opps
With one row on top ...I have changed B2 to B3 and the day row +1. Try the
below and feedback

Private Sub Workbook_Open()
Range("B3").Resize(62, 31).Interior.ColorIndex = xlNone
Cells(1+(Day(Date) * 2), Month(Date) + 1).Interior.Color = vbYellow
End Sub

--
If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

> With one row on top ...I have changed B2 to C2 and the day row +1. Try the
> below and feedback
>
> Private Sub Workbook_Open()
> Range("C2").Resize(62, 31).Interior.ColorIndex = xlNone
> Cells(1+(Day(Date) * 2), Month(Date) + 1).Interior.Color = vbYellow
> End Sub
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "MAX" wrote:
>
> >
> >
> > Hi Jacob
> > If I insert a row at the top, does the code remains the same?
> >
> > Thanks in advance.
> >
> >
> > "Jacob Skaria" wrote:
> >
> > > The below code will highlight the current day cell as per your calendar
> > > layout. Place this code in workbook open event. If you have the calendar in a
> > > default sheet you can add the sheet name as well. Launch VBE using Alt+F11.
> > > From the treeview double click 'This Workbook' and paste this code.
> > >
> > > Private Sub Workbook_Open()
> > > Range("B2").Resize(62, 31).Interior.ColorIndex = xlNone
> > > Cells(Day(Date) * 2, Month(Date) + 1).Interior.Color = vbYellow
> > > End Sub
> > >
> > >
> > > If this post helps click Yes
> > > ---------------
> > > Jacob Skaria
> > >
> > >
> > > "MAX" wrote:
> > >
> > > > Here I have a calendar where every day has 2 rows. In this example let say
> > > > that today's date is 1st January. I need that cell B2 (Highlight) will be
> > > > highlighted with any colour as I open the file and cell B3 (Details) remains
> > > > empty where I can put my details. Any help please?
> > > >
> > > > Thanks in adnance.
> > > >
> > > > A B C D E F
> > > > ____________________________________________________
> > > > 1 JAN FEB MAR APR MAY
> > > > ____________________________________________________
> > > > 2 1 Highlight
> > > > 3 Details
> > > > _____________________________________________________
> > > > 4 2
> > > > 5
> > > > ______________________________________________________
> > > > 6 3
> > > > 7
> > > > ______________________________________________________
> > > > 8 4
> > > > 9
> > > > ________________________________________________________

 
Reply With Quote
 
MAX
Guest
Posts: n/a
 
      9th May 2009
It works both with Range("C2") and Range("B3").

Thanks a lot.

"Jacob Skaria" wrote:

> Opps
> With one row on top ...I have changed B2 to B3 and the day row +1. Try the
> below and feedback
>
> Private Sub Workbook_Open()
> Range("B3").Resize(62, 31).Interior.ColorIndex = xlNone
> Cells(1+(Day(Date) * 2), Month(Date) + 1).Interior.Color = vbYellow
> End Sub
>
> --
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Jacob Skaria" wrote:
>
> > With one row on top ...I have changed B2 to C2 and the day row +1. Try the
> > below and feedback
> >
> > Private Sub Workbook_Open()
> > Range("C2").Resize(62, 31).Interior.ColorIndex = xlNone
> > Cells(1+(Day(Date) * 2), Month(Date) + 1).Interior.Color = vbYellow
> > End Sub
> >
> > If this post helps click Yes
> > ---------------
> > Jacob Skaria
> >
> >
> > "MAX" wrote:
> >
> > >
> > >
> > > Hi Jacob
> > > If I insert a row at the top, does the code remains the same?
> > >
> > > Thanks in advance.
> > >
> > >
> > > "Jacob Skaria" wrote:
> > >
> > > > The below code will highlight the current day cell as per your calendar
> > > > layout. Place this code in workbook open event. If you have the calendar in a
> > > > default sheet you can add the sheet name as well. Launch VBE using Alt+F11.
> > > > From the treeview double click 'This Workbook' and paste this code.
> > > >
> > > > Private Sub Workbook_Open()
> > > > Range("B2").Resize(62, 31).Interior.ColorIndex = xlNone
> > > > Cells(Day(Date) * 2, Month(Date) + 1).Interior.Color = vbYellow
> > > > End Sub
> > > >
> > > >
> > > > If this post helps click Yes
> > > > ---------------
> > > > Jacob Skaria
> > > >
> > > >
> > > > "MAX" wrote:
> > > >
> > > > > Here I have a calendar where every day has 2 rows. In this example let say
> > > > > that today's date is 1st January. I need that cell B2 (Highlight) will be
> > > > > highlighted with any colour as I open the file and cell B3 (Details) remains
> > > > > empty where I can put my details. Any help please?
> > > > >
> > > > > Thanks in adnance.
> > > > >
> > > > > A B C D E F
> > > > > ____________________________________________________
> > > > > 1 JAN FEB MAR APR MAY
> > > > > ____________________________________________________
> > > > > 2 1 Highlight
> > > > > 3 Details
> > > > > _____________________________________________________
> > > > > 4 2
> > > > > 5
> > > > > ______________________________________________________
> > > > > 6 3
> > > > > 7
> > > > > ______________________________________________________
> > > > > 8 4
> > > > > 9
> > > > > ________________________________________________________

 
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
Outlook 2007 calendar import hotmail calendar & shared calendar Craig Microsoft Outlook Calendar 1 17th Jul 2008 05:28 AM
SharePoint Calendar vs Exchange User's Shared Calendar vs ExchangePublic Folder of Calendar Items Jeff Microsoft Outlook Calendar 1 3rd Mar 2008 07:03 PM
Need to open a public calendar (Office Calendar - not a user's calendar that is shared) debnla Microsoft Outlook 6 26th Aug 2007 09:42 PM
Moving calendar items from personal calendar to server calendar =?Utf-8?B?ZG9tY28=?= Microsoft Outlook Calendar 1 12th Feb 2007 03:29 AM
Synchronization Calendar(public calendar & private calendar) Jane Microsoft Outlook 0 22nd Jul 2003 05:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:52 PM.