I have inherited a workbook with a UserForm in. When I press Ctrl L, the form activates and it has an OK button which I use to exit it.
What I want to do is to add an oval shape to my spreadsheet and when the user clicks on the shape, this will activate the UserForm.
My problem is, I don't know how to "link/assign" the UserForm to the shape. When I right-click on the oval and choose "Assign Macro", the list of macros shown does not seem to inlcude one to activate the user form. (I also do not see where Ctrl L got assigned.)
When I go to Visual Basic off the Developer Ribbon, I can see the UserForm itself, and the code:
======================================
Private Sub UserForm_Initialize()
Me.TextBox1.Text = ActiveCell.NoteText
End Sub
======================================
Can anyone tell me how to "assign" the UserForm to the Oval shape?
Thanks,
MikeG
What I want to do is to add an oval shape to my spreadsheet and when the user clicks on the shape, this will activate the UserForm.
My problem is, I don't know how to "link/assign" the UserForm to the shape. When I right-click on the oval and choose "Assign Macro", the list of macros shown does not seem to inlcude one to activate the user form. (I also do not see where Ctrl L got assigned.)
When I go to Visual Basic off the Developer Ribbon, I can see the UserForm itself, and the code:
======================================
Private Sub UserForm_Initialize()
Me.TextBox1.Text = ActiveCell.NoteText
End Sub
======================================
Can anyone tell me how to "assign" the UserForm to the Oval shape?
Thanks,
MikeG