P
Peter Dewildt
I have an application I have developed in Visio over the past few months,
starting with Visio 2002 and now 2003. Basically it uses information from a
drawing to update a database.
I have the shapes and a lot of VBA code in a VSS file, and the drawing in a
VSD. The VSD contains a VBA reference to the VSS.
In the past I have been able to copy the two files onto other computers, and
the VBA reference from the VSD to the VSS always worked regardless of where
I put the two files (though always in the same directory).
Now I am ready to put the application into production. I have stripped back
the VSD to an empty page and renamed it to VST.
Everything works find on my computer. However when I copy the VSS and VST to
another computer and create a new drawing based on the VST, and try to
execute any of my code, I get a compile error because the VBA reference is
broken.
The same thing happens if I do what I did before - copy VSS and VSD.
Does anyone know a way around this? It is going to pay painful to tell users
to manually correct the VBA reference.
About the best I can think of is that I have to tell our users that they
will have to put the VSS in a directory with exactly the same name as on my
computer.
I know that Access looks for broken references in the same directory as the
Access mdb. Also in Access I can programmatically set VBA References (using
Application.References) but I can't find anything similar with VBA.
starting with Visio 2002 and now 2003. Basically it uses information from a
drawing to update a database.
I have the shapes and a lot of VBA code in a VSS file, and the drawing in a
VSD. The VSD contains a VBA reference to the VSS.
In the past I have been able to copy the two files onto other computers, and
the VBA reference from the VSD to the VSS always worked regardless of where
I put the two files (though always in the same directory).
Now I am ready to put the application into production. I have stripped back
the VSD to an empty page and renamed it to VST.
Everything works find on my computer. However when I copy the VSS and VST to
another computer and create a new drawing based on the VST, and try to
execute any of my code, I get a compile error because the VBA reference is
broken.
The same thing happens if I do what I did before - copy VSS and VSD.
Does anyone know a way around this? It is going to pay painful to tell users
to manually correct the VBA reference.
About the best I can think of is that I have to tell our users that they
will have to put the VSS in a directory with exactly the same name as on my
computer.
I know that Access looks for broken references in the same directory as the
Access mdb. Also in Access I can programmatically set VBA References (using
Application.References) but I can't find anything similar with VBA.