A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
So now all data on the worksheet is saved in UK format dd/mm/yyyy as you pointed out - so now there are no text formatting of dates or times in the worksheet
The problem is that it seems that user form txtdate value, on saving to the worksheet is being saved in mm/dd/yyyyy format -
Adrian,
the only problem is that you do not understand that you can not save a date in a special format.
A date in Excel is a number, not a text!
Make a new file
Apply the formula =TODAY() into A1
Format A1 as General
And you'll see this number for 20 May 2020:
You have to write that number into the sheet, not a text, in whatever format!
(Technical details: If you write a text into a cell that looks like a date, Excel tries to convert the text into a date / into a number. That's the reason why you think Excel stores the date into a different format, but that's a wrong conclusion.
If the conversation fails, Excel stores a text into the cell. And it doesn't matter which format the cell has before or after. That's the reason for all that wrong dates / errors in your database.
Means: Your form will never work if you continue to write text.)
Again:
Convert the text from your Textbox into a date variable and write that variable into the sheet.
After that you can format the cell with any date format you like, doesn't matter.
To get the date from the sheet:
Read the value from the cell and use FormatDateTime to convert it into a text
I already showed you an example how that works and how it looks like on systems with different languages.
That works all around the world, even if you share the file.
Andreas.