Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default call up a calendar

I WOULD LIKE TO PROGRAM A COMMAND BUTTON TO PULL UP A CALENDAR CONTROL. ONCE
DATE IS SELECTED, HAVE CALENDAR HIDDEN. CAN ANYONE HELP? THANKS IN ADVANCE
FOR THE HELP!
--
icebreaker914
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default call up a calendar

I did something like what you want using my Personal.xls. Here's something
for you to work with:

1)Add a code reference to a Microsoft Calendar Control
2)Add a Form to your project and insert the Calendar Control to it. (I named
mine Calendar1)
3)Here's the form's code:
Option Explicit
Private Sub Calendar1_Click()
Unload Me
End Sub

4)Here's the code I put in a Workbook module:
Option Explicit
Sub ShowCalendar()
Dim newDate
Load frmCal
newDate = Format(Now(), "mm/dd/yyyy")
frmCal.Calendar1.Value = newDate
frmCal.Show
End Sub

5)Then, I just created a keyboard shortcut for the ShowCalendar macro:
ToolsMacroMacros
Select ShowCalendar
Click Options and select the shortcut keys: [Ctrl]+[Shift]+C

Anyway, that's what I did. You'd just have to engage the macro to a button,
instead.

Does that help?

--
Regards,
Ron

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default call up a calendar

Icebreaker, have a look at Ron's site and see if this will work for you

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

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"icebreaker914" wrote in message
...
I WOULD LIKE TO PROGRAM A COMMAND BUTTON TO PULL UP A CALENDAR CONTROL.

ONCE
DATE IS SELECTED, HAVE CALENDAR HIDDEN. CAN ANYONE HELP? THANKS IN

ADVANCE
FOR THE HELP!
--
icebreaker914



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default call up a calendar


Place this code in a general module and assign it to your command button

Sub ShowCalendar()
Sheets("Sheet1").DrawingObjects("Calendar1").Visib le = True
End Sub

Place this code in the relevant worksheet module

Private Sub Calendar1_Click()
ActiveCell = Calendar1.Value
Calendar1.Visible = False
End Sub

--

XL2003
Regards

William



"icebreaker914" wrote in message
...
I WOULD LIKE TO PROGRAM A COMMAND BUTTON TO PULL UP A CALENDAR CONTROL.
ONCE
DATE IS SELECTED, HAVE CALENDAR HIDDEN. CAN ANYONE HELP? THANKS IN
ADVANCE
FOR THE HELP!
--
icebreaker914



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
On call calendar question CJC Excel Discussion (Misc queries) 1 November 21st 08 09:06 PM
find free sharware to include calendar pop or use calendar in cell ednc Excel Discussion (Misc queries) 2 April 14th 08 05:05 PM
how do i export excel calendar info to outlook calendar? Maggie Excel Discussion (Misc queries) 1 December 31st 07 10:27 PM
Call Center Management: How to calculate 'cost per call' Denniso6 Excel Discussion (Misc queries) 2 June 25th 06 05:01 PM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM


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