Reading shapesheet info from a Master, like the Width and Height Cell

Started by Visisthebest, December 27, 2020, 07:34:33 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Visisthebest

Master objects in Stencils do not have the Shape.Cells property that I would normally use to read the Width and Height of the 'shape' that is (in) the master.

Is there a way to read the Width and Height of the 'shape' that is (in) the Master in the stencil or can this only be read by dropping the master on the page and checking the Width and Height of the shape?
Visio 2021 Professional

Croc

The master is equivalent to a page.
The page contains a shape (or shapes).
More or less like this
Debug.Print Activedocument.Masters(1).PageSheet.Cells("PageWidth")
Debug.Print Activedocument.Masters(1).Shapes(1).Cells("Width")

Visisthebest

Thank you Croc I wouldn't have guessed that really good to know how to read Width and Height directly from a Master!
Visio 2021 Professional