Arie Bos
Board Regular
- Joined
- Mar 25, 2016
- Messages
- 224
- Office Version
- 365
- Platform
- Windows
I have a userform whit optionbuttons 'New' and 'Existing'. Depending on the selection, userform 'New' or userform 'Existing should follow. This works OK.
I 'd like to avoid a default value for one of them, so the user must choose. So, I have a MsgBox popping up if btnNext1 is pressed without a selection.
So far so good. But then, the userform disappears after clicking OK on the MsgBox, and an 'Out of Memory' message appears.
I am not sure if these two issues are related.
Any ExcelMaster has any idea how to solve this?
I 'd like to avoid a default value for one of them, so the user must choose. So, I have a MsgBox popping up if btnNext1 is pressed without a selection.
So far so good. But then, the userform disappears after clicking OK on the MsgBox, and an 'Out of Memory' message appears.
I am not sure if these two issues are related.
Any ExcelMaster has any idea how to solve this?
VBA Code:
private sub btnNext1_click()
' .......
If ((Me.OptNew.Value = 0) * (Me.OptExisting.Value = 0)) Then
MsgBox "Please select between Existing installation or New installation"
End If
Select Case True
Case OptNew: frm30_NewInstall.Show vbModal
Case OptExisting: frm20_ExistingInstall.Show vbModal
End Select
Unload Me
End Sub