PLEASE HELP in Need of a VBA userform code for Calender date to Display in another userform textbox

resaadkins

New Member
Joined
Jul 18, 2012
Messages
5
[h=2]HELP!!! Need VBACode for Calendar to display in Userform textbox[/h]
What code so I use in order to have a userform1 calendar linked to a worksheet cell and then have the worksheet cell data displayed in another userform2 textbox?​
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
HELP!!! Need VBACode for Calendar to display in Userform textbox

What code so I use in order to have a userform1 calendar linked to a worksheet cell and then have the worksheet cell data displayed in another userform2 textbox?​

Try this for the calendar:

Code:
Private Sub Calendar1_Click()
Range("A1").value = Calendar1.Value 
Range("A1").NumberFormat="mm/dd/yy"
End Sub

And this for the Textbox

Code:
userform2.textbox1.value = range("A1").value or

userform2.textbox1.value = userform1.calendar1,value
 
Upvote 0
I tried this and it still not display date in the textbox on userform1
the calendar is in userform2. any thoughts as to why this isn't functioning right
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top