ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calendar Function (https://www.excelbanter.com/excel-programming/418295-calendar-function.html)

Brad

Calendar Function
 
I'm building a form to allow users to sort and chart data. One of the
functions I'm trying to incorporate is to allow the user to get data from a
certain date. So when the user clicks in a text box a calendar will appear
(<- that part works) after the user selects a date, i would like to display
the date in the textbox (<-that part doesn't) any suggestions?

corey

Calendar Function
 
Where does the Calendar date appear ?
Private Sub Calendar1_Click()
UserForm2.TextBox4.Value = Calendar1.Value ' <=== Modify to target the
required Textbox
With Calendar
Unload Me
End With
End Sub



"Brad" wrote in message
...
I'm building a form to allow users to sort and chart data. One of the
functions I'm trying to incorporate is to allow the user to get data from
a
certain date. So when the user clicks in a text box a calendar will appear
(<- that part works) after the user selects a date, i would like to
display
the date in the textbox (<-that part doesn't) any suggestions?




Brad

Calendar Function
 
that works. thx

"corey" wrote:

Where does the Calendar date appear ?
Private Sub Calendar1_Click()
UserForm2.TextBox4.Value = Calendar1.Value ' <=== Modify to target the
required Textbox
With Calendar
Unload Me
End With
End Sub



"Brad" wrote in message
...
I'm building a form to allow users to sort and chart data. One of the
functions I'm trying to incorporate is to allow the user to get data from
a
certain date. So when the user clicks in a text box a calendar will appear
(<- that part works) after the user selects a date, i would like to
display
the date in the textbox (<-that part doesn't) any suggestions?






All times are GMT +1. The time now is 01:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com