VBA form interpret the data in the excel worksheet wrongly.

Azim Azrul 41 Reputation points
2021-07-19T01:28:34.357+00:00

What is the solution for date format in the excel VBA form? Im still new with the excel VBA. When I key in the date in the VBA form using this format [dd/mm/yyyy], it will interpret automatically as [mm/dd/yyyy] in the worksheet. My computer system settings for the date format is in [dd/mm/yyyy] and the excel date format is [dd/mm/yyyy] (I tried to put it as General and custom, both didnt work). Is there any solution for this? The VBA coding might help I guess.

Thanks in advance for the help guys!

0 comments No comments
{count} votes

Accepted answer
  1. Tom van Stiphout 1,696 Reputation points MVP
    2021-07-20T03:20:00.21+00:00

    When you write code in VBA, the only acceptable date format is US format. MSFT is a US company, and they got to choose.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.