Calendar and userforms

×

×לי

Hi all!

I have a calendar control embedded in a userform and another 2 userforms
with few textboxes that call the calendar form. My question is how can I
direct the calendar value to the specific active textbox in one of the
userforms that needs the calendar value?

Thanks in advance

Eli
 
×

×לי

Thanks for your reply, but I can't found there anything regarding the use of
the calendar value and different textboxes in different userforms.


Eli
 
P

p45cal

×לי;580533 said:
Hi all!

I have a calendar control embedded in a userform and another 2
userforms
with few textboxes that call the calendar form. My question is how can
I
direct the calendar value to the specific active textbox in one of the
userforms that needs the calendar value?

Thanks in advance

Eli

With the likes of

Code:
--------------------
UserForm2.TextBox1.Value = UserForm1.Calendar1.Value
--------------------

As long as both userforms are loaded this should work in either of the
userfroms code modules. You could use it in the afterupdate event of the
calendar, or in the initialise event of userform2.. any number of
places.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top