I am trying to run OLE automation apps which have been developed under Windows on the OSX platform - OSX 10.6.4 and Office 11. OLE Support is installed as well.
However, I am getting the error message “Operation not supported on this platform” when I try to use CreateObject to start Excel and populate an Excel sheet.
Here is the code I am trying to use:
Dim xxlApp As Variant 'Excel.Application
Dim xxlBook As Variant 'Excel.Workbook
Dim xxlSheet As Variant 'Excel.Worksheet
Set xxlApp = CreateObject("Excel.Application")
Set xxlBook = xxlApp.Workbooks.Add
Set xxlSheet = xxlBook.Worksheets(1)
Has somebody successfully used OLE automation under OSX?
Thank you,
Dieter