A family of Microsoft relational database management systems designed for ease of use.
Hi, rabalam!
It is not VBS, that is VBA
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have some script that will allow me to add a user-defined section and the visLegendShape attribute to a shape. See posted code below.
Sub AddLgnd()
Dim shp As Visio.Shape
Set shp = ActiveWindow.Selection(1)
If Not shp.CellExistsU("User.visLegendShape", False) Then
shp.AddNamedRow visSectionUser, "visLegendShape", visdefault
End If
shp.CellsU("User.visLegendShape").FormulaU = "2"
If Not Shp.CellExistsU("User.visIsConnected", False) Then
Shp.AddNamedRow visSectionUser, "visIsConnected", visdefault
End If
Shp.CellsU("User.visIsConnected").FormulaU = "0"
End Sub
I would like to add the ability to cycle through all of the shapes on a drawing or a stencil and set this attribute. Can someone help me with the additional code required to do this.
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi, rabalam!
It is not VBS, that is VBA