Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Returns or sets an MsoLanguageID constant that represents the language for the specified object. Read/write.
Syntax
expression.LanguageID
expression A variable that represents a TextRange object.
Return value
MsoLanguageID
Remarks
The LanguageID property value can be one of the MsoLanguageID constants declared in the Microsoft Office type library.
Example
This example formats the specified selection as French. This example assumes that the cursor is in a text box.
Sub SetLanguage()
Selection.TextRange.LanguageID = msoLanguageIDFrench
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.