Hallo Ihr lieben Noteskolleginnen und -kollegen,
ich habe folgendes Problem und würde mich sehr freuen, wenn Ihr mir mal wieder helfen könnt:
Ich möchte mit einer Schaltfläche eine Exceldatei öffnen. In der Schaltfläche habe ich folgendes LS eingebaut:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim thisDoc As NotesDocument
Set uidoc = workspace.CurrentDocument
Set thisDoc = workspace.CurrentDocument.Document
Set x1=CreateObject("Excel.Application")
x1.Application.Workbooks.Open thisdoc.Exceldatei
x1.application.visible=True
Wobei die Variable Exceldatei den Pfad und die Datei enthält.
Ist auf dem Rechner Excel installiert funktioniert das alles wunderbar.

Ist auf dem Rechner aber OpenOffice installiert und kein Excel erhalte ich die Fehlermeldung:
"Cannot create automationobject".
Ist ja auch klar. Er soll ja auch konkret Excel öffnen. Kann ich dort irgendeinen Befehl eingeben, dass er Calc nimmt, wenn Excel nicht installiert ist?

Im voraus vielen Dank für Eure Hilfe.
Johann