Hi,
You need to check out the International property in the VBA Help.
This is sample code that I use downunder to ensure that the Regional settings are the way I want them:
' Check that the date format is d-m-y - NOT m-d-y (problems!!)
If Application.International(xlMDY) = True Then
Message = "The Windows date format is 'mm-dd-yy' instead of 'dd-mm-yy'. " & (Chr(13)) & _
"Please go to Control Panel and change Regional Settings to " & (Chr(13)) & _
"** English(Australian) ** and then restart Excel."
Title = "Windows Date Format"
MyValue = MsgBox(Message, , Title)
End
End If
I hope this helps.
Regards,
Peter Moran