Off-page references in VBA

A

Andrew Kochetcov

We have the next problem.
In Visio 2003 we use "Basic Flowchart" - stancil. It has "Off-page
reference" - Master element.
During creating this element dialog box with choosing destination page and
some other properties appears.

But how we can perform such operation using VBA?

We try to record appropriate macros, but found that standart command "drop",
which is used for location shape on page DOES NOT contain ANY information
about destination-page for
"Off-page reference" - Master element. So, we run this macros, but dialog
window appears.

How we can do it automatically - how we can to tell Visio destination page
using VBA?

Thank you,
Andrew
 
D

David Parker

The Off-Page Reference shape calls an addon called OPC
You will not be able to record the actions performed by this addon.

Therefore. I suggest that you look at the cells that the OPC addon creates
in the User, Events and Hyperlinks section, and write your own VBA code to
use the the same cells in the same way.

Therefore, you will need to create a simple dialog to perform the same task
as the OPC addon, but you will then be able to use the OPC addon for the
double-click ... which is nice!

Thus, you can apply the same technique to any Master that you create.
 

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