Hello,
I have created a user form with one command button on it. I want, when the user presses the button, to delete the button or at least make it invisible. The difficult part on this is that i want this to be done permanently. I have read in a book that this can be done by using the VBE object and the designer object but i cannot find out how. If i write the following code the button becomes invisible but not permanently. If i open the form again the button is still there. Do you know hot to do this permanently bu using the VBE, designer object or in some ohter way?
Thanks in advance,
Andreas
Option Explicit
Private Sub CommandButton1_Click()
CommandButton1.Visible = False
End Sub
Bookmarks