I fell into the spreadsheet trap that I created. It works fine on my PC, but I know that some other PCs in the office are localized in the USA. Is there a way to get VBA to check things using UK localization?
The problem I am facing is that as part of the macro, I use Text to Columns to ensure that the dates entered appear as dates, not numbers or text. It seems to be working fine on my PC, but I know that I configured it as the localization of the UK.
Other people are having problems, and they donβt know if this is the localization of the UK or not. Instead of having to check other people's localization or insist that they have UK localization on their computers, it would be ideal if I could insert an extra line of code in VBA to force everything that was done in this macro , make in Localization UK.
The problem itself is that the program switches dates to the US format from the British format. It seems like this happens when the text-column phase occurs in a macro.
Is there a way to get VBA to automatically check if it's localized in the UK, if you don't change it to the localization of the UK, and then change it at the end? I donβt want every computer to be located in the UK, because it can cause other problems or annoy users - something that is definitely NOT desirable!
Hooray!
source share