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?
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?