In my program I pass values from VB to Excel for reporting.
When I pass 03-01-2009 (3rd Jan 2009), in excel it shows as 01-03-2009.
I have set short date format to dd-mm-yyyy, in control panel, regional settings.
Also in excel, I set cell format through VB as ...
Exl.Range("A1").NumberFormat = "dd-mm-yyyy"
Exl.Range(Rng).NumberFormat = "@"
Exl.Range(Rng).NumberFormat = "dd-mm-yyyy;@"
But neither of way works, it shows 01-03-2009
Please give me the solution to this problem.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!