FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,364
- Office Version
- 365
- 2016
- Platform
- Windows
Two questions.
1) I have some code that will create a Vertical Org Chart, but when I'm ready to run the code again for a new Org Chart, how do I delete the Diagram.
I recorded the action to delete the diagram, but the number may not be the same every time.
2) How can I align the diagram starting in D11 and resized to a bigger size?
1) I have some code that will create a Vertical Org Chart, but when I'm ready to run the code again for a new Org Chart, how do I delete the Diagram.
I recorded the action to delete the diagram, but the number may not be the same every time.
VBA Code:
Sub Macro1()
ActiveSheet.Shapes.Range(Array("Diagram 1")).Delete
End Sub
2) How can I align the diagram starting in D11 and resized to a bigger size?