Where should I put Load and Unload frm1 (name of the user form frm1) and where should I put Me.Show and Me.Hide?
The button (x) inside the user form does not work.
My download and upload are in the Active-X button code on Sheet 1:
Private Sub cmdb1_Click()
Load frm1
Unload frm1
End Sub
This way my user form is initialized and I can run the code
Private Sub Userform_Initialize()
'Some other code that Works...
frm1.Show
End Sub
it shows my user form. Now I have a command button in my user form that has code
Private Sub cmdbClose_Click()
Me.Hide
End Sub
which I use to hide the routine that runs the last line in cmdb1_Click () and the user form is unloaded. It works.
However, when I click the (x) button in my user form, the following error appears 
, cmdb1_Click(). UserForm_QueryClose(), . , , , Load Unload, cmdb1_Click().
:
. ShowUserform cmdbClose_Click , CallumDA. :
Private Sub cmdb1_Click()
Load frm1
Call ShowUserform
End Sub