How can you add a shape into an existing group in visio, without ungrouping because I have many custom properties into my group shapesheet. I dont want subformulas using it to be broken.
Here is the beginning of my VBA code but I can't find a method to add the shape in the group.
Sub moveToGroup(OrigineShape As Shape, DestinationGroup As Shape)
End Sub
Thank you all for your answers.
It was actually quite simple!
Sub moveToGroup(OrigineShape As Shape, DestinationGroup As Shape)
OrigineShape.Parent = DestinationGroup
End Sub
Just remember not to use Set
for this assignment, as doing so generates an error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With