Excel VBA and displaying multiple forms

P

Prasun

Hello:

I have a few forms in my excel vba code. I want one of my forms to dispay
another form depending on whether a radio button is chosen or not. Here is
my code below. It does not however bring up the new form.

Thank You
Prasun

Private Sub cbSubmit_Click()

Dim SheetName As New frmEnterSheetName

If obNewSheetYes.Value = 1 Then
SheetName.Show
End If

If obNewSheetYes.Value = 0 And obNewSheetNo.Value = 0 Then
MsgBox "Please Choose if you Would Like to Create a New Client Worksheet"
Exit Sub
End If

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top