View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Janis Janis is offline
external usenet poster
 
Posts: 360
Default 3 option buttons, okay, cancel, NEED the form to stay up

I need some help on a form. I have 3 option buttons and an "okay" and
"cancel".
If I click one of the options and "okay" it fires. If I first click cancel
then it cancels.
The problem is if I click one of the options and okay and it runs then the
form closes. I need my form to stay up. I need to be able to process all 3
options at the users pace and then be able to close the form separately.

Any hints to get me started would be appreciated. This is my first form.
thanks,
-----

Private Sub cmdCancel_Click()
Unload Me
End Sub

Private Sub cmdOkay_Click()
Dim nResult As Long
If optCkforDupes.Value = True Then

Call SSPproject.createXLdb1.deleteDateRow1
Call SSPproject.createXLdb1.CkforDupes

End If
If optSaveIndesign.Value = True Then
Call SSPproject.saveIndesign.saveIndesign
End If
If optReformatDepts.Value = True Then
Call SSPproject.ReformatDepts.SortDivDept
Call SSPproject.ReformatDepts.HideCellsNtoX
End If

End Sub