Macro Data Form changing date format

Hoppipolla

New Member
Joined
Feb 28, 2008
Messages
5
I've done a search of the forums and have been unable to find a previous thread on this. My apologies is one already exists.

I have a table of data in which two of the columns are dates. They are formatted dd/mm/yyyy as I am in UK.

I locate records in the table using the topline menu Data>Form and click Criteria, then edit as required. When done manually the dates in the form show in the correct format.

I have recorded a macro to automatically open the data form for me, and to update other sheets with amended data when I hit 'Close' then save the file.

When I use the macro to open the data form, the displayed date format changes to mm/dd/yyyy.

This happens to all data, even if I originally enter the data using the form and use the dd/mm/yyyy when I enter the data.

i want to be able to pass this file on to others to use, so I would like it to be right first time.

What am I doing wrong?:confused:
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
try introduce a code in the macro to format the relevant range or columns according to your requirement.
 
Upvote 0
what are your date format in windows local settings? are they correct for your locale
what code did you macro record?
post the code
 
Upvote 0

Forum statistics

Threads
1,214,873
Messages
6,122,029
Members
449,061
Latest member
TheRealJoaquin

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