maestro_01
02-12-2010, 02:35 PM
Hello All,
On the click of a button, I would like to search a specific Visio document for text specified from a known value. Sounds simple yes, however, I believe the object classes in Visio are referenced a little differently and I get this error:
"Run-Time Error 432:
File name or class name not found during Automation operation"
Code:
Sub test()
Dim otest As Object
Set otest = GetObject("C:\My Documents\Highlighting work\Test.vsd", "Visio.Application")
otest.Visible = True
End Sub
Therefore, Visio is launched, but the file I want to open does not appear. How would I resolve this?
Thanks,
Maestro
On the click of a button, I would like to search a specific Visio document for text specified from a known value. Sounds simple yes, however, I believe the object classes in Visio are referenced a little differently and I get this error:
"Run-Time Error 432:
File name or class name not found during Automation operation"
Code:
Sub test()
Dim otest As Object
Set otest = GetObject("C:\My Documents\Highlighting work\Test.vsd", "Visio.Application")
otest.Visible = True
End Sub
Therefore, Visio is launched, but the file I want to open does not appear. How would I resolve this?
Thanks,
Maestro