In module I have:
in worksheet module I have:
Private Sub Worksheet_Activate()
LoadUserForm (frmMenubar)
End Sub
Note that frmMenubar is the userform that i already created.
Error shows Type Mismatch. How to do this?
Code:
Public Sub LoadUserForm(ByVal iform As UserForm)
'//set form position
With iform
.Top = Application.Top + 170
.Left = Application.Left + 30
End With
iform.Show vbModeless
End Sub
in worksheet module I have:
Private Sub Worksheet_Activate()
LoadUserForm (frmMenubar)
End Sub
Note that frmMenubar is the userform that i already created.
Error shows Type Mismatch. How to do this?