Metaripley
Board Regular
- Joined
- Dec 31, 2014
- Messages
- 93
Ive got a userform which runs if i press the play button within VBA.
But I want to connect it to a button on the worksheet.
And in the macro vieuw list it is not showing.
The code is in the Userform code.
Removing the "Private" dosnt work.
But I want to connect it to a button on the worksheet.
And in the macro vieuw list it is not showing.
The code is in the Userform code.
Removing the "Private" dosnt work.
Code:
Private Sub UserForm_Initialize()
End Sub
Private Sub CommandButton2_Click()
' Hide the Userform and set cancelled to true
Hide
m_Cancelled = True
End Sub
Last edited: