MS Access error 429: ActiveX component can't create object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raddrummer
    New Member
    • Oct 2007
    • 26

    MS Access error 429: ActiveX component can't create object

    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:
    Code:
    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
    Last edited by debasisdas; Mar 26 '09, 05:00 AM. Reason: added code tags
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    How your visio file has the extension of .htm

    Comment

    • raddrummer
      New Member
      • Oct 2007
      • 26

      #3
      Ah, good catch. I guess it's the simple things some times = ).

      Comment

      Working...