Link to home
Start Free TrialLog in
Avatar of Michael Paravicini
Michael ParaviciniFlag for Chile

asked on

olns.GetDefaultFolder(olFolderInbox) does not work for non english versions of Outlook

I am using  Set ofO = olns.GetDefaultFolder(olFolderInbox) to access emails in Outlook which works fine if I'm using an English version of Outlook. However, as soon as the user uses a different version for example Spanish version of Outlook, the same code generates an err.number = -2147221233 and I have no clue why. I also tried to use Set ofO = olns.Folders("reservas@hotelviravira.com").Folders("Bandeja de entrada") but again with the same result. Thank you for any help...
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Paravicini

ASKER

Thank you but I get the same problem... The OS Language is English and Outlook / Office is in Spanish. However, I do get the same problem if both are in Spanish.. Thanks Michael
Which is strange because it works for me with German / German, and I've not heard of any issues with languages up to now.
Did you try to look up the folders collection as mentioned above?