Forum Discussion
jragan
Nov 05, 2021Copper Contributor
Object positioning
I have an excel worksheet that creates a diagram. Below are attached the original creation of the diagram and also the new version of the diagram from the modified program. The user wants to know...
jragan
Nov 09, 2021Copper Contributor
Peter,
Thank you for your reply. The problem for me is that I do not see any code that is assigning position to any shape as you have demonstrated above. I will keep looking though.
Thank you again.
John
Thank you for your reply. The problem for me is that I do not see any code that is assigning position to any shape as you have demonstrated above. I will keep looking though.
Thank you again.
John
PeterBartholomew1
Nov 09, 2021Silver Contributor
John
How was the diagram created? Was it simply a diagram created by hand? Changing the size of the underlying mesh can change the shapes, depending on their settings. Rotating shapes is unusual, though.
How was the diagram created? Was it simply a diagram created by hand? Changing the size of the underlying mesh can change the shapes, depending on their settings. Rotating shapes is unusual, though.
- jraganNov 10, 2021Copper ContributorThe diagram is actually created by VBA code. The objects are all defined and the shapes are turned on or off depending on user input on the excel sheet. It does not use any positioning logic and from what I am learning from the user they reposition objects to line up they way they want them for each diagram created for their customer. Thank you for your answer.
- PeterBartholomew1Nov 10, 2021Silver Contributor
Many things are possible using VBA. What is desirable or worth the effort is another matter. For example, once the shapes have been positioned manually a 'record button' could store the position and visibility of shapes to a data table on a hidden sheet. That would allow a 'reset' button that takes the diagram back to a default state. The properties of Excel shapes are sufficient to allow the shape to be extruded and positioned in 3D with changing lighting options.
For some slightly over the top graphics see
- jraganNov 17, 2021Copper ContributorThanks. One last question. When you manually reposition a shape does it always reappear in the last spot it was placed in when used again?
Thank You again.
John