Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Userform - calendar control

I've got a userform with a calendar control - it works perfect with one
exception - I would like the calendar to show todays date as default[indent
or whatever].
My efforts thusfar resulted in the userform giving todays date irrespective
the date you choose - if I use Userform11.Calendar1.today
Any ideas ?
thanks in advance
--
HJN
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Userform - calendar control

HJN,

The default of the calendar, when first opened, is today's date, and that
sounds like what you want.

"Userform11.Calendar1.Today" sets the calendar to today's date

When the user picks a date, you can retrieve it with
Userform11.Calendar1.Value

hth,

Doug

"Hennie Neuhoff" wrote in message
...
I've got a userform with a calendar control - it works perfect with one
exception - I would like the calendar to show todays date as default
[indent
or whatever].
My efforts thusfar resulted in the userform giving todays date
irrespective
the date you choose - if I use Userform11.Calendar1.today
Any ideas ?
thanks in advance
--
HJN



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Userform - calendar control

I'm not sure if I fully understand your question but it sounds like you have
to save the value chosen by the user to a variable that your userform would
show. For example, something like

var_chosen=me.calendar.value

Then have the userform display var_chosen.

Sorry if I've misunderstood your question.


"Hennie Neuhoff" wrote:

I've got a userform with a calendar control - it works perfect with one
exception - I would like the calendar to show todays date as default[indent
or whatever].
My efforts thusfar resulted in the userform giving todays date irrespective
the date you choose - if I use Userform11.Calendar1.today
Any ideas ?
thanks in advance
--
HJN

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
Enter date in userform using Calendar Control Scotty9349 Excel Discussion (Misc queries) 1 March 4th 09 07:02 PM
Calendar Control in UserForm D Excel Programming 1 February 21st 08 06:19 PM
exclude holidays on UserForm Calendar control #DIV/0 Excel Programming 4 February 12th 08 03:20 PM
Programmactically add calendar control to userform Greg Wilson Excel Programming 7 March 3rd 06 11:18 PM
How to use Microsoft Calendar Control 9.0 on a Userform Anupam Sharma Excel Programming 4 August 27th 03 06:19 PM


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