language used in outlook?

  • Thread starter Thread starter vonClausowitz
  • Start date Start date
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top