XLL+ Class Library (7.0)


Translates a string containing resource IDs, for the language of the Excel version

CStringA XllGetTranslatedStringA(
   const char* pszIn



input string, which may contain numeric resource string identifiers. See Remarks below.

Return Value

If the function succeeds, the translated string will be returned. If it fails, then an untranslated or partially translated string will be returned.


This function attempts to replace the resource string IDs in the input string with resource strings loaded from the current resource file. The resource file searched will be that returned by XllGetStringResourceHandle). The language used will be either the current user preference (as returned by GetThreadLocale()) or the language of the Excel version (as returned by XllGetExcelLanguageID).

String identifiers should be in one of the following forms:

String substitutions

This function calls XllTranslateString and ignores errors.


Header: xllres.h

See Also

Global resource functions | XllTranslateString