User entry variable date being mysteriously switched around...

jnathan

New Member
Joined
Jul 8, 2013
Messages
48
I have a macro that requests the user to input a date. This variable is then used within a filter to select the dates required. The date is entered in UK format and the variable is showing in the Locals window just how the user is inputting the data - as you'd expect.

Here's where it gets a bit strange, when checking manually to see the date entered into the Custom Filter the date is being switched into US format.

The code I'm using for the user to enter the date is below

strdate = InputBox(Prompt:="Please enter the earliest w/c date required", _
Title:="Enter Week Commencing Date", Default:="dd/mm/yyyy")

Any ideas why this problem is happening and how I can resolve it?
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Watch MrExcel Video

Forum statistics

Threads
1,100,200
Messages
5,473,121
Members
406,846
Latest member
otown2221

This Week's Hot Topics

Top