setting outlook language

  • Thread starter Thread starter vonClausowitz
  • Start date Start date
V

vonClausowitz

Hi All,

I have created a code in VB to sort on Received.
olInbox.Items.Sort (["Received"])

The problem is that we have different machine with different languages
in Outlook.
So on my Dutch machine it should be:

olInbox.Items.Sort (["Ontvangen"])
If I use Received the code crashes on the Dutch machine and vice
versa.

What can I do to make the code running properly?

Marco
 
You would have to use the language specific name for that property. You can
get the language being used from Application.LanguageSettings.
 
Back
Top