Input a date into a VBA form in Excel

PaulRob

New Member
Joined
Dec 17, 2023
Messages
13
Office Version
  1. 2010
Platform
  1. Windows
I am trying to have the user put in a DATE into a user form I have written into a VBA on the back of an Excel Spreadsheet.

Currently I have a txt box with the following coding:

Private Sub txtInServiceDate_Change()


End Sub

What/how do I change this so that the User inputs a date in the format mm/dd/yyyy please?

Thank you
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,
link requires sign-in & cannot access that file

This issue has moved on from original post & really should be a new thread - as its xmas I will, when have a moment, take a look (when posted new link) but it may be awhile.

Dave
 
Upvote 0
My bad there Dave - not familiar with Google Drive. I have changed access so you can grab it with the link hopefully but if you prefer I can start a new thread for it? Whatever works for you as I appreciate your time and expertise.

Wishing you a very happy and safe Christmas. I will be working through from 12/24 to 12/26 as emergency services dont catch a break! I do hope though that my "customers" also have a happy and safe time too! We are like the Maytag people - no one WANTS to see us, but they are glad when they do hopefully so we can mitigate their issue!
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,354
Members
453,033
Latest member
lapmangviettel

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