How to get the absolute (page) position in a subshape formula?

Started by Visisthebest, January 12, 2021, 09:05:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visisthebest

How can a subshape get its own absolute position on the page with a shapesheet formula?

The scenario is: the user is grouping shapes he/she shouldn't be grouping, and I want to keep VBA macros from going haywire because suddenly the PinX and PinY of shapes (that have suddenly become subshapes because of user action) are now relative to the group not the page.

If I could create a User section field with a formula that always has the absolute (relative to the page) PinX and PinY of a subshape that would solve it perfectly! Thank you for your help!
Visio 2021 Professional

wapperdude

Just use this formula:  LOCTOLOC(PNT(LocPinX, LocPinY), Width, ThePage!PageWidth)
Visio 2019 Pro

Visisthebest

Visio 2021 Professional