On a websheet form I have a diagram, and then next to it some donut shapes that the user can move to indicate a specific position on the diagram.
However at the top of a form is a combobox which changes a lot of the values in the form. What I want to be able to do is move the shapes back to a default position whenever the value in the combobox is changed.
I know how to specify when the combobox is changed, and I know how to move the shapes based on their current position.
How do I move the shapes either to a specified position on the worksheet, or relative to a static location on the worksheet?
The only code I have so far for the shapes is
If possible I would also like to make it so whilst the shapes can be moved they cannot be deleted or resized.
Thanks in advance
However at the top of a form is a combobox which changes a lot of the values in the form. What I want to be able to do is move the shapes back to a default position whenever the value in the combobox is changed.
I know how to specify when the combobox is changed, and I know how to move the shapes based on their current position.
How do I move the shapes either to a specified position on the worksheet, or relative to a static location on the worksheet?
The only code I have so far for the shapes is
Code:
Sub FormatShapes()
'
' FormatShapes Macro
'
'
ActiveSheet.Shapes.Range(Array("Donut 67")).Select
Selection.ShapeRange.IncrementLeft -95.75
Selection.ShapeRange.IncrementTop -76.5
End Sub
If possible I would also like to make it so whilst the shapes can be moved they cannot be deleted or resized.
Thanks in advance
Last edited: