Application CheckSpelling works for English words only

YasserKhalil
PlatinumLounger
Posts: 4911
Joined: 31 Aug 2016, 09:02

Application CheckSpelling works for English words only

Post by YasserKhalil »

Hello everyone

I have a question about that Application.CheckSpelling.
Is this feature available for English words only? and if yes. Is there a workaround to make it work for any other language?

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Application CheckSpelling works for English words only

Post by HansV »

You can specify the language as follows:

Code: Select all

Application.SpellingOptions.DictLang = ...
where ... is the language ID of the language you want. For example, English (USA) is 1033, and Arabic (Egypt) is 3073. See Language IDs.
Best wishes,
Hans

YasserKhalil
PlatinumLounger
Posts: 4911
Joined: 31 Aug 2016, 09:02

Re: Application CheckSpelling works for English words only

Post by YasserKhalil »

I already searched and found this ID for Arabic and when trying that option I encountered an error.
It seems this dictionary is not existing within the dictionaries. How can I add this dictionary?

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Application CheckSpelling works for English words only

Post by HansV »

Best wishes,
Hans

YasserKhalil
PlatinumLounger
Posts: 4911
Joined: 31 Aug 2016, 09:02

Re: Application CheckSpelling works for English words only

Post by YasserKhalil »

Thank you very much Mr. Hans
Now it works well.