Date Formatt Changing

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I am using the VB below to create a date in a userform as dd/mm/yyyy
which is viewing ok on the userform.
The issue is when i submit the form the date is changing to american format in the spreadsheet it is being saved on. As i work for a company is there anyway i can make 100% sure the date is entered in the uk format for reporting information.

Code:
Today = Format(Now, "dd/mm/yyyy") 'date
Me.txtdate.Value = Today
Me.txtdate.Locked = True


Many Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thanks for the reply, but i am going to sound thick here. Sorry

The original coded i ran was in the inalisation of the user form.
Would this still run in the same way except i would have to enter Today() in cell A1 so it automatically pics the cells date up.

The original fault wasnt that the date was showing wrong it just seems to change the date after the fact to American when it is saved into a raw data file?

Many thanks
 
Upvote 0
Sorry, the code I posted was to transfer the date from the userform to a worksheet in UK format.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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