I also use a boolean like strongm in the Form_Load event, to exit any unwanted events during loading.
However, in this situation, where you want to make sure that the user makes a selection no matter what, you can set the option buttons all to False in the load event.
Setting an Option button to False will not fire the Option button's Click event.
(This example is assumming an Option Button control array is being used. If it is not a control array, then you will need to test each option button with a If/Else statement):
Private Sub Form_Load()
Dim opt As OptionButton
For Each opt In Option1
opt.Value = False
Next opt
End Sub
Now you need a method to check if any option buttons have been selected:
Private Function CheckOptions() As Boolean
Dim opt As OptionButton
For Each opt In Option1
If opt.Value Then
CheckOptions = True
Exit Function
End If
Next opt
End Function
So, before your code continues onto the next step, call this function, and if it returns FALSE, then you know that the user hasn't selected anything:
If CheckOptions() then
MsgBox "Option selection was made
Else
MsgBox "Option selection was NOT made
End If [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!