This saves the last OptionButton selected to cell D2 on Sheet1. It then selects from that saved setting the OptionButton when the userform is re-initialized. This seems to cure the blank listboxes as well.
Private Sub UserForm_Initialize()
If Sheets("Sheet1").Range("D2").Value > 0 Then
Me.Controls("OptionButton" & Sheets("Sheet1").Range("D2").Value).Value = True
End If
End Sub
Private Sub UserForm_Terminate()
Dim iOpt As Integer
Select Case True
Case OptionButton1.Value: iOpt = 1
Case OptionButton2.Value: iOpt = 2
Case OptionButton3.Value: iOpt = 3
End Select
Sheets("Sheet1").Range("D2").Value = iOpt
End Sub
Bookmarks