PC Review


Reply
Thread Tools Rate Thread

Calendar Control in UserForm

 
 
D
Guest
Posts: n/a
 
      21st Feb 2008
I have a User Form with a command button that is set to open another form
with a Calendar Control.

I would like to have the the date choosen in my frmCalendar to then be
entered into my main form (frmLoaner) in a field named txtOrderDate. Also,
can I use this same frmCalendar to enter dates into other fields or do I need
to have seperate calendars?
 
Reply With Quote
 
 
 
 
Matthew Pfluger
Guest
Posts: n/a
 
      21st Feb 2008
It is very possible to send a value between userforms. Consider defining
Userform Properties. Make sure that you copy the property from the
frmCalendar to the frmLoaner before Unloading it.

Also, using properties, you can build the frmCalendar in a way that it
return dates however often it is needed per form. That's a very good idea.
Perhaps you could call it as a function:

frmLoaner.txtAnyTextbox.Value = frmCalendar.Date

I know this is just conceptual at this point, but you should be able to set
this up.

HTH,
Matthew Pfluger

"D" wrote:

> I have a User Form with a command button that is set to open another form
> with a Calendar Control.
>
> I would like to have the the date choosen in my frmCalendar to then be
> entered into my main form (frmLoaner) in a field named txtOrderDate. Also,
> can I use this same frmCalendar to enter dates into other fields or do I need
> to have seperate calendars?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter date in userform using Calendar Control Scotty9349 Microsoft Excel Misc 1 4th Mar 2009 07:02 PM
Userform - calendar control Hennie Neuhoff Microsoft Excel Programming 2 17th Oct 2008 05:52 PM
exclude holidays on UserForm Calendar control #DIV/0 Microsoft Excel Programming 4 12th Feb 2008 03:20 PM
Programmactically add calendar control to userform =?Utf-8?B?R3JlZyBXaWxzb24=?= Microsoft Excel Programming 8 3rd Mar 2006 11:18 PM
How to use Microsoft Calendar Control 9.0 on a Userform Anupam Sharma Microsoft Excel Programming 4 27th Aug 2003 06:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:00 PM.