A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

language used in outlook?





 
 
Thread Tools Display Modes
  #1  
Old February 8th 06, 06:50 PM posted to microsoft.public.outlook.program_vba
vonClausowitz
external usenet poster
 
Posts: 29
Default language used in outlook?

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

Ads
  #2  
Old February 8th 06, 07:24 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 810
Default language used in 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.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"vonClausowitz" wrote:

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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change language btissam Outlook - Using Contacts 1 March 6th 06 11:40 AM
Wrong language Kalyn Outlook - Installation 0 February 23rd 06 02:56 PM
outlook contacts index button in foreign language randy821 Outlook - Using Contacts 0 February 2nd 06 07:39 AM
how do enter contacts in a foreign language in Outlook? Costis Outlook - Using Contacts 1 January 23rd 06 12:16 PM
language characters tomber77 Outlook - Installation 0 January 9th 06 02:34 PM


All times are GMT +1. The time now is 01:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Personal Loans - Articles directory - Free Advertising - Mortgage Calculator - Credit Card