#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Calendar

Hi,

I'm trying to put a calendar in excel so that the selected date will return
the date value (e.g. 1st January 2007 shall return 39083) as I need to use
this date to run different formulae.

I've managed to insert-object-calendar, but can't find any way of allowing
the calendar to return me this value.

Can anyone help?

Thanks in advance.

Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Calendar

Hi Chris

See
http://www.rondebruin.nl/calendar.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chris" wrote in message ...
Hi,

I'm trying to put a calendar in excel so that the selected date will return
the date value (e.g. 1st January 2007 shall return 39083) as I need to use
this date to run different formulae.

I've managed to insert-object-calendar, but can't find any way of allowing
the calendar to return me this value.

Can anyone help?

Thanks in advance.

Chris

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Calendar

If you are ok with the date formated as date then you can just use the linked
cell property of the calendar. Put the spreadsheet into design mode and right
click on the Calendar - View Properties - Linked Cell. By default the
format of this cell will be date. From there you could use a formula that
references the linked cell to get the serial date something like this. =A1 +
0 where A1 is the linked cell. You can format this cell as number to get your
39083

If you need the serial value of the date directly then you need to get a bit
more fancy by using code somethin like this placed directy in the sheet the
calendar is on (right click the sheet tab and seelct view code)

Private Sub Calendar1_Click()
Range("A1").Value = Calendar1.Value
End Sub

--
HTH...

Jim Thomlinson


"Chris" wrote:

Hi,

I'm trying to put a calendar in excel so that the selected date will return
the date value (e.g. 1st January 2007 shall return 39083) as I need to use
this date to run different formulae.

I've managed to insert-object-calendar, but can't find any way of allowing
the calendar to return me this value.

Can anyone help?

Thanks in advance.

Chris

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Adding absences in rolling twelvemonths in a calendar QD Excel Discussion (Misc queries) 5 September 4th 06 06:51 PM
Excel Spreadsheet to Create/Update Monthly Calendar ATL10SPRO Excel Discussion (Misc queries) 1 March 14th 06 04:22 PM
Calendar issue cjtj4700 Excel Discussion (Misc queries) 2 January 6th 06 08:21 PM
Erasing Outlook Calendar from within Excel littlegreenmen1 Excel Discussion (Misc queries) 0 June 15th 05 05:23 PM


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

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"