I need to change the region format to "French (Canada)" in order for datevalue
to accept french months (eg. 05 Mars, 12 Avril, etc) and then revert it back to "English (Canada)" within the VBA code.
I hope it's not as complex and that there is a write property that can modify this setting with VBA.
So far, I've found Application.International(xlCountrySetting) but it is only a read property.
This is the setting in question I wish to change:
Thanks
As pointed out in the comments, you can do this with a couple simple Windows API calls. Instead of assuming that the machine is currently set to "English (Canada)", I'd suggest testing the current setting with
GetUserDefaultLCID
, and then setting it back to that when you're done.Documentation links for the relevant functions are below: