G
Gary
I have two shapes that I need grouped. I used the Set for one shape which
save the Name of the shape, and the 2nd shape is currently selected. How can
I group the currently selected shape with the shape I set with the Set
command???
Looking below, How do I group vsoUnitR and vsoUnitD together with VBA code?
Note that vsoUnitD currently is selected.
Your help is deeply appreciated !!
Thanks,
Gary
P.S. Below is part of my code:
Dim AppVisio As Visio.Application
Dim DocObj As Visio.Document
Dim vsoUnitR As Visio.Shape, vsoUnitD As Visio.Shape
AppVisio.Application.Documents.OpenEx Stencil_RPath, visOpenRO +
visOpenDocked
AppVisio.Application.ActiveWindow.Page.Drop
AppVisio.Application.Documents.Item(Stencil_RPath).Masters.ItemU(PR), xp, yp
Set vsoUnitR = AppVisio.Application.ActiveWindow.Selection(1)
AppVisio.Application.ActiveWindow.Selection(1).Cells("piny") = Y0 -
UnitDepth * (PosDepth - 1)
AppVisio.Application.ActiveWindow.Page.DrawLine xp, Y0, xp, Y0 -
UnitDepth * (PosDepth - 1)
Set vsoUnitD = AppVisio.Application.ActiveWindow.Selection(1)
save the Name of the shape, and the 2nd shape is currently selected. How can
I group the currently selected shape with the shape I set with the Set
command???
Looking below, How do I group vsoUnitR and vsoUnitD together with VBA code?
Note that vsoUnitD currently is selected.
Your help is deeply appreciated !!
Thanks,
Gary
P.S. Below is part of my code:
Dim AppVisio As Visio.Application
Dim DocObj As Visio.Document
Dim vsoUnitR As Visio.Shape, vsoUnitD As Visio.Shape
AppVisio.Application.Documents.OpenEx Stencil_RPath, visOpenRO +
visOpenDocked
AppVisio.Application.ActiveWindow.Page.Drop
AppVisio.Application.Documents.Item(Stencil_RPath).Masters.ItemU(PR), xp, yp
Set vsoUnitR = AppVisio.Application.ActiveWindow.Selection(1)
AppVisio.Application.ActiveWindow.Selection(1).Cells("piny") = Y0 -
UnitDepth * (PosDepth - 1)
AppVisio.Application.ActiveWindow.Page.DrawLine xp, Y0, xp, Y0 -
UnitDepth * (PosDepth - 1)
Set vsoUnitD = AppVisio.Application.ActiveWindow.Selection(1)