High Plains Grifter
Board Regular
- Joined
- Mar 9, 2010
- Messages
- 129
Hi people
I am using UerForms majorly for the first time, and I am having a bit of a mistifying problem...
The first userform takes and input and gives three choices: Exit, Use the Input, Manual Search.
Exit has the following code:
and that works fine, but the Manual Search button has this code:
This is not so very different, but returns this error: Compile Error: Argument not Optional, and selects Unload.Me, then when I click ok, it highlights the top line. I tried silly things like this (which I probably should have guessed would not work):
but nothing seems to correct it.
Why has Excel turned on me like this?
Thanks for reading this, and any answers gratefully received (particularly by my fast disintegrating teeth)
Mark
I am using UerForms majorly for the first time, and I am having a bit of a mistifying problem...
The first userform takes and input and gives three choices: Exit, Use the Input, Manual Search.
Exit has the following code:
Code:
Private Sub BRefExit_Click()
Unload Me
End Sub
Code:
Private Sub BRefSearch_Click()
Unload.me
Selecta.Show
End Sub
Code:
Private Sub BRefSearch_Click()
If 1 = 1 Then
Unload.Me
Else
Unload Me
End If
Selecta.Show
End Sub
Why has Excel turned on me like this?
Thanks for reading this, and any answers gratefully received (particularly by my fast disintegrating teeth)
Mark