Not exactly sure what you're talking about, but I'll take a guess.
The shape you are using has a custom right-click, or context menu that
allows you to hide and show some graphics.
Inside the ShapeSheet for this shape is an Actions section. There will be a
formula under the hide/show rows that looks something like one of these:
SetF( "User.TagVisible", Not(User.TagVisible) )
SetF( GetRef( User.TagVisible ), Not(User.TagVisible) )
What you are looking for is the target cell - whatever the name of the cell
that is the first argument in the SetF function. In my example,
"User.TagVisible" is the cell that you care about. Then the VBA code is
simple:
Dim shp as Visio.Shape
Set shp = Visio.ActiveWindow.Selection(1)
shp.Cells( "User.TagVisible" ).ResultIU = 1 ' 1 = true, 0 = false
--
Hope this helps,
Chris Roth
Visio MVP
visioguy @ extremely warm mail.com