Need help with vba from MSAccess to open a visio file

Joined
Apr 5, 2007
Messages
1
Reaction score
0
Greetings all,

I hope this is the correct forum for this automation question.

I have MS Access 2003 and MS Visio 2003 I have tried ever help doc I could find. I can run Visio but my existing file will not open. Below is my last attempt:

Public Sub PrgVisio()

Dim mydoc As Object

Set mydoc = GetObject("C:\ProgWS\Automation_prg\Guest Part.vsd")

End Sub


I get an error Run-time error '432';
File name or class name not found during Automation operation.

I have the following references:
Visual Basic For Applications
OLE Automation
MS Access 10.0 Object Library
MS Visio 11.0 Drawing Control Type Library
MS Visio 11.0 Type Library
MS Visio Viewer 10.0 Type Library

And the file and path are correct for the GetObject.

Why does this code just not open the file? And how can I print the document after it opens?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top