Raddrummer
03-25-2009, 11:27 AM
Hi everyone,
I'm trying to open a Visio document from Access and am getting an error that says "ActiveX component can't create object". I checked the reference library and couldn't find anything out of sorts there, but I'm no expert so I could be overlooking something. Any ideas on how to fix?
Thanks!
Here is the code I'm using:
Public Sub OpenDocument_OrgChart()
Dim vsoDocument As Visio.Document
'Open an existing document.
Set vsoDocument = Documents.Open("C:\Documents and Settings\SLozano\My Documents\OrgChart.htm")
End Sub
I'm trying to open a Visio document from Access and am getting an error that says "ActiveX component can't create object". I checked the reference library and couldn't find anything out of sorts there, but I'm no expert so I could be overlooking something. Any ideas on how to fix?
Thanks!
Here is the code I'm using:
Public Sub OpenDocument_OrgChart()
Dim vsoDocument As Visio.Document
'Open an existing document.
Set vsoDocument = Documents.Open("C:\Documents and Settings\SLozano\My Documents\OrgChart.htm")
End Sub