RP1America
Technical User
I have a Word document with multiple command buttons. One command button (cmdIntroduction) in particular initiates a user form. When the user selects Submit on the user form, the folling code runs:
...hence deleting the cmdIntroduction command button as intended. However, once this is accomplished, none of my other command buttons on the document now work. What am I missing?
Thanks!
Code:
For Each obj In ActiveDocument.InlineShapes
If obj.OLEFormat.Object.Name = "cmdIntroduction" Then
obj.Delete
End If
Next
...hence deleting the cmdIntroduction command button as intended. However, once this is accomplished, none of my other command buttons on the document now work. What am I missing?
Thanks!