Hi,
I have a form that I have completed with radio buttons, which, when selected
shows a different set of fields for the user.
I know how to make a frame visible, but the problem I see with this is the
"space" two separate frames make when only one is chosen.
I decided upon a multipage layout with the style as fmTabStyleNone so it
looks seemless.
The problem I am having is getting the correct (actually, any!) multipage
layout to appear on selection of the radio button. So far I have:
_______
hides the frame which surrounds the multipage until radio is selected
_______
Public Sub UserForm_Initialize()
TabsFrame.Visible = False
End Sub
_______
I copied this from the help file but can't get it to work

Error
message is Invalid class string
_______
Private Sub TOption1_Click()
Tabs.Visible = True
Dim TabIndividual As Control
If TOption1 = True Then
Set TabIndividual = TabsFrame.Pages(0).Controls.Add("frmMain" _
& ".TextBox.1", "TabIndividual", Visible)
End If
End Sub
Private Sub TOption2_Click()
Tabs.Visible = True
Dim TabCompany As Control
If TOption2 = True Then
Set TabCompany = TabsFrame.Pages(0).Controls.Add("frmMain" _
& ".TextBox.1", "TabCompany", Visible)
End If
End Sub
Thanks in advance!!