Language Property
MsoScriptLanguage
MsoScriptLanguage can be one of these MsoScriptLanguage constants. |
msoScriptLanguageASP |
msoScriptLanguageJava |
msoScriptLanguageOther |
msoScriptLanguageVisualBasic |
Remarks
The MsoScriptLanguage constants used with the Language property are also used in the Language parameter in the Add method of the Scripts collection.
Example
This example checks the Language property to ensure that the first script in worksheet one in the active workbook is written in VBScript.
If ActiveWorkbook.Worksheets(1).Scripts(1).Language <> _
msoScriptLanguageVisualBasic Then
MsgBox "Language is not set to VBScript."
End If
Applies to | Script Object