#1   Report Post  
tourmaline
 
Posts: n/a
Default Pop up calendar

Does anyone know if a cell can be formatted to allow a calendar pop up to
appear and date to be selected? If so, how and do you have to add in the
feature?

Thanks
  #2   Report Post  
Zack Barresse
 
Posts: n/a
Default

Hi there,

Ensure that you have the Controls Toolbox toolbar enabled/visible. Select
the 'More Controls' button, select Calendar Control 11.0 (or whatever
version you have). Create it on the screen, size to desired, place where
desired. Now ensure you are not in Design mode. Right click the sheet
tab/name of the sheet the control was placed on, select View Code, past
something like this in there ...


Option Explicit

Private Sub Calendar1_Click()
Dim Target As Range
Set Target = Selection
Application.EnableEvents = False
Target.Value = Me.Calendar1.Value
Me.Calendar1.Visible = False
Target.Activate
Application.EnableEvents = True
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Target.Address = "$A$1" Then
Me.Calendar1.Visible = True
Else
Me.Calendar1.Visible = False
End If
End Sub


Press Alt + Q to return to Excel. SAVE YOUR WORK BEFORE YOU TRY THIS. It's
just a good general rule. Works great for me though. It will appear when
somebody selects A1, select the date, it will put it in your selected cell
then make the control invisible again. Looks fairly seemless.

HTH

--
Regards,
Zack Barresse, aka firefytr


"tourmaline" wrote in message
...
Does anyone know if a cell can be formatted to allow a calendar pop up to
appear and date to be selected? If so, how and do you have to add in the
feature?

Thanks



  #3   Report Post  
Ron de Bruin
 
Posts: n/a
Default

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

--
Regards Ron de Bruin
http://www.rondebruin.nl


"tourmaline" wrote in message ...
Does anyone know if a cell can be formatted to allow a calendar pop up to
appear and date to be selected? If so, how and do you have to add in the
feature?

Thanks



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
Erasing Outlook Calendar from within Excel littlegreenmen1 Excel Discussion (Misc queries) 0 June 15th 05 05:23 PM
How do i set up a calendar in excel? Luxbrian Excel Discussion (Misc queries) 0 April 11th 05 05:54 PM
Calendar and info for that date Jenn Excel Discussion (Misc queries) 0 January 5th 05 04:21 PM
Weekly data into Calendar Weeks ExcelMonkey Excel Worksheet Functions 2 November 22nd 04 08:41 PM


All times are GMT +1. The time now is 08:16 AM.

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"