NickEveritt
MIS
I am having problems with dates from an inputbox produced by VBA into excel.
I 100% know that it is the regional settings, all PCs here should be on dd/mm/yy, but as usual they are not all set-up, I have changed my settings so that I can get round ther variations. I have read all the previous posts, and I am missing something here, it doesnt work, so if anyone can tell me exactly what i need to rather than copy and paste the help from VBA 6 that would be great.
The code is to use the inputbox to find a date on a worksheet.
I use this code to get the inputbox entered date into ChosenDate.
ChosenDate = Format(Application.InputBox("Enter a date"
When i then try to use the value from ChosenDate to search I get the error.
The value entered is 16/07/02.
the value showing against ChosenDate is 02/07/16, and the regional setting for short are mm/dd/yy.
Basically whatever is entered will always be in UK style dd/mm/yy, so I just need to stop the regional setting messing with it.
I look forward to your many replies!
Nick
I 100% know that it is the regional settings, all PCs here should be on dd/mm/yy, but as usual they are not all set-up, I have changed my settings so that I can get round ther variations. I have read all the previous posts, and I am missing something here, it doesnt work, so if anyone can tell me exactly what i need to rather than copy and paste the help from VBA 6 that would be great.
The code is to use the inputbox to find a date on a worksheet.
I use this code to get the inputbox entered date into ChosenDate.
ChosenDate = Format(Application.InputBox("Enter a date"
When i then try to use the value from ChosenDate to search I get the error.
The value entered is 16/07/02.
the value showing against ChosenDate is 02/07/16, and the regional setting for short are mm/dd/yy.
Basically whatever is entered will always be in UK style dd/mm/yy, so I just need to stop the regional setting messing with it.
I look forward to your many replies!
Nick