language used in outlook?

V

vonClausowitz

Hi All,

Is there some small code in VB to check if your outlook is using
English or another language?

I have to sort emails on Date Received which is done by using:

olDeleteFolder.Items.Sort ("[Received]"), True

However when I use my code on a Dutch machine it should say:

olDeleteFolder.Items.Sort ("[Ontvangen]"), True

Is there something like:

If language = English then
.....
else
........
endif

Regards

Marco
 
E

Eric Legault [MVP - Outlook]

The Application.LanguageSettings object contains locale information. This
object is actually part of the Office Object Model, not Outlook (but it
derives from Outlook's Application object).

From what I remember though, you don't have to code in the language of the
computer that your code is installed on. Any user data (names of views,
folders, etc.) of course needs to be referenced exactly, but you shouldn't
have to use translated Property names.
 
Top