Click to delete object from Word doc
I have a Word object such as a command button in a Word document.
I want to have a procedure where a user clicks on the object and the object is removed from the Word document
Web Development
I have a Word object such as a command button in a Word document.
I want to have a procedure where a user clicks on the object and the object is removed from the Word document
Private Sub CommandButton1_Click()
Selection.ShapeRange.delete
End Sub
This would delete the control CommandButton1 if clicked. insert the line in the program code attached to the control.
Why delete a control by clicking it?
Perhaps some text is hidden behind it?
by hurdk
by hurdk
This discussion is closed to new replies.
Sort by Trending