Controlling date input

southpawDiscGolf

New Member
Joined
Dec 2, 2008
Messages
13
I realize that this is a continuation of a previous thread but after going back and forth ten times, I'd thought it best to re-ask the question.

I want the user to have total flexibility to input date information in any format that they desire - either with or without slashes and have the system be smart enough to interpret the input and make the necessary changes.

Can this be controlled entirely within VBA? Do I need to use user-forms?
Any advise would be greatly appreciated. The problem that I was having with the my code was when the cell has a date in it and the user wanted to change the date by entering 7468 (for July 4, 1968) the system interprets this to be 6/11/1920. My code was in the preliminary stages (mainly taken from Chip Pearson web site with some small modifications).
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Using validation doesn't work, if you it set up to accept dates from 1/1/1900 to today()

and you enter 7/4/08 - the system accepts it

if you then key in 7408 (the system accepts it and changes the date to 4/12/1920) not the desired 7/4/08. I want the system to be smart enough to know what the person intended.
 
Upvote 0

Forum statistics

Threads
1,203,502
Messages
6,055,777
Members
444,823
Latest member
AnAverageGuy

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