Share via

Counting Visio objects

Anonymous
2010-05-24T10:01:57+00:00

I have a diagram with several hundred objects on a page. External Data is linked to each object. I need to verify that each data item is associated with a Visio object. I can count the number of rows in the External Data file. How do I count the number of objects (with which the data is linked) on the page. The purpose is to verify the numbers are equal (without clicking every data record to see the object to which it is linked). Analogy: Windows Explorer tells you how many files are in a folder.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-05-24T11:14:23+00:00

Your solution will have to be accomplished with custom code ( a macro perhaps). When an object is associated with a datarecord there is a pointer attached to it, all you need to to is loop through the shapes on the page (for each visShape in visPage.shapes) and test to see that one is assigned.

al

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful