LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ll ll is offline
external usenet poster
 
Posts: 67
Default Calendar Control 11 - Month/Year Only

Hi,
I am working with a form in Excel, and I've been trying to get the
calendar control (11) to fire when only the month and year are
completed, but I cannot find a way.
Currently, I have this code behind the calendar (which comes up from a
button on the form):

=======
Private Sub calendar1_Click()

Calendar1.Day = 1

frmCourseBooking.txtDateTaken.Value = frmCal.Calendar1.Value

Unload frmCal
End Sub
==========
This does work, but it only will work one time: if the "parent" form is
left open and the calendar launch button is clicked again, the calendar
does come up, but the first day of the month isn't selected after the
first time. Basically, I'm just trying to get around having to select
the day by having it in the code. Any help is greatly appreciated.

Thanks,
Louis

 
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
Tell me which "season" (Month/Day through Month/Day) a date(Month/Day/Year) falls in (any year)??? misscrf Excel Discussion (Misc queries) 1 December 14th 07 02:59 PM
Help dealing with a fiscal year rather than a calendar year Tyler Excel Worksheet Functions 3 August 25th 07 11:26 AM
Opening calendar form with today's month & year pkeegs Excel Discussion (Misc queries) 2 December 17th 06 07:53 PM
change the year in a calendar template to different year George Excel Discussion (Misc queries) 1 July 19th 06 07:34 PM
Need advice, help on creating Microsoft month calendar control using the winapi in Excel Johan De Schutter Excel Programming 0 November 22nd 04 10:10 AM


All times are GMT +1. The time now is 05:18 AM.

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"