Author Topic: Reading shapesheet info from a Master, like the Width and Height Cell  (Read 510 times)

0 Members and 1 Guest are viewing this topic.

Visisthebest

  • Sr. Member
  • ****
  • Posts: 389
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

  • Sr. Member
  • ****
  • Posts: 277
    • Visioport
Re: Reading shapesheet info from a Master, like the Width and Height Cell
« Reply #1 on: December 27, 2020, 02:47:14 PM »
The master is equivalent to a page.
The page contains a shape (or shapes).
More or less like this
Code
Debug.Print Activedocument.Masters(1).PageSheet.Cells("PageWidth")
Debug.Print Activedocument.Masters(1).Shapes(1).Cells("Width")

Visisthebest

  • Sr. Member
  • ****
  • Posts: 389
Re: Reading shapesheet info from a Master, like the Width and Height Cell
« Reply #2 on: December 28, 2020, 05:26:38 AM »
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