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?​
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,066
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
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
 

resaadkins

New Member
Joined
Jul 18, 2012
Messages
5
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,408
Messages
5,595,961
Members
414,035
Latest member
billbumkins

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
Top