Launches Microsoft Excel.
If Microsoft Excel could be started, then "OK" is
returned.
When Excel is not found or could not be started, then an
empty String is returned.
If an error occurred, then "ERROR" is returned.
Returns:
Type |
Value |
Description |
String |
empty String |
Microsoft Excel was not found on the
computer |
String |
ERROR |
In case of any error the string
"ERROR" is returned |
String |
OK |
When Excel was found and could be
launched, then "OK" is returned as a String. |
Available in:
WindowMain |
WindowLink |
YES |
YES |
Hint: You can
find references to XojoScripts which make use of this function by sending the
following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from
im_scripts where ScriptCode Like '%ExcelLaunch%'
Example XojoScript:
// Check if we have Excel Installed
Dim v As String = ExcelLaunch
If v = ""
Or v = "ERROR"
Then
MsgBox "Microsoft Excel could not be launched!"
Return
End If