S
SteveM
I'm trying to open an Excel Workbook from Visio 2007 VBA:
Private Sub CommandButton1_Click()
Dim xlApp As New Excel.Application
Dim xlWB As Excel.Workbook
Dim thisPath As String
thisPath = ThisDocument.Path
thisPath = thisPath & "Tester.xlsx"
Set xlWB = xlApp.Workbooks.Open(thisPath)
End Sub
The MS Excel 12.0 Object Library was added as a Reference. However
executing the script yields the error message:
Automation Error Library Not Registered
So I'm apparently missing another Reference Library. Can anybody tell
me what that could be? Or perhaps point me to some code where Excel
is called from Visio?
Thanks,
SteveM
Private Sub CommandButton1_Click()
Dim xlApp As New Excel.Application
Dim xlWB As Excel.Workbook
Dim thisPath As String
thisPath = ThisDocument.Path
thisPath = thisPath & "Tester.xlsx"
Set xlWB = xlApp.Workbooks.Open(thisPath)
End Sub
The MS Excel 12.0 Object Library was added as a Reference. However
executing the script yields the error message:
Automation Error Library Not Registered
So I'm apparently missing another Reference Library. Can anybody tell
me what that could be? Or perhaps point me to some code where Excel
is called from Visio?
Thanks,
SteveM