Set "HideTag" from VBA

W

Wendy

I Would like to turn off the tags on my shapes from VBA.
How is that done?

I tried
Vshapes.item(i).Cells("user.PEHideTag") = 1

where
dim Vshapes As Visio.shapes

but it doesnt work.
 
C

Chris Roth [ Visio MVP ]

OK, Process Engineering - took me a while...

To do this for all shapes at once, you need to get hold of the "Page Shape"
to do this.

Dim shp as Visio.Shape
set shp = Visio.ActivePage.PageSheet
shp.cells("User.PEHideTags").ResultIU = 1


the syntax for changing cells is:

shape.Cells("User.PEHideTags").ResultIU = 1

or

shape.Cells("User.PEHideTags").Formula = "1"



--

Hope this helps,

Chris Roth
Visio MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top