I have the following problem:
I wrote a program for Word in VBA which creates a schedule
that display addresses in a date range.
The date range is provided through user input.
I know what the Regional Settings will be on the client
computer (they are not set to US English). My code works fine (as long as the date is entered in a format appropriate to the regional settings). However, the date ends up being formatted in the language and format specified in the regional settings.
For example,
Thursday April 10, 2003
appears as
jeudi avril 10, 2003
Is there any way that I can force the Format function in VBA to display the date in English?
I know I can't change the regional settings programmatically (and wouldn't want to), and I don't want to start parsing the full date and translating it programmatically, especially since the regional settings of the client
are set to a non-latin language.
Any help would be greatly appreciated.
Thanks,
EB
I wrote a program for Word in VBA which creates a schedule
that display addresses in a date range.
The date range is provided through user input.
I know what the Regional Settings will be on the client
computer (they are not set to US English). My code works fine (as long as the date is entered in a format appropriate to the regional settings). However, the date ends up being formatted in the language and format specified in the regional settings.
For example,
Thursday April 10, 2003
appears as
jeudi avril 10, 2003
Is there any way that I can force the Format function in VBA to display the date in English?
I know I can't change the regional settings programmatically (and wouldn't want to), and I don't want to start parsing the full date and translating it programmatically, especially since the regional settings of the client
are set to a non-latin language.
Any help would be greatly appreciated.
Thanks,
EB