Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to identify an Ethernet shape from within VBA

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
Hello,
I've written a macro that does some modifications to the currently selected Ethernet Shape. In my code, I first ensure that the selected item actually IS an Ethernet Shape. I do this by looking at the shapeObj.NAME property, which should look like "Ethernet.n".
My macro just hiccupped! I have a large LAN diagram with several Ethernet shapes on it, and two of these shapes report a NAME property of "Sheet.n" instead of "Ethernet.n". Bug in Visio 2000? Don't know, don't care. What I do care about is a 100% reliable of method of determining if my selected shape is an Ethernet shape?
NOTE: there is a PARENT property, but this returns PAGE-1, not the name of the master Ethernet shape -too bad.
-with thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top