Selecting tabs in a multipage form

G

Guest

I am making a userform that i need help with. What i want is when the user
selects the radio button called LS338, a tab in the mutlitab called LS338 (i
can change this if that is a problem) will show. Also when i select radio
button LS518 tab LS518 shows, and ect. The Multitab is called LinkBelt.

What is the code that i need to do this?
i was thinking something like
LinkBelt.LS338.show
LinkBelt.LS338.select
but these give me errors.

Anyone know?

Thanks in advance

Jared
 
G

Guest

Since I don't know what your page names are one your MultiPage (unless you
meant tabstrip).

Private Sub LS338_Click()
If LS338.Value Then
For Each p In Me.Linkbelt.Pages
If LCase(p.Caption) = "ls338" Then
l = p.Index
Exit For
End If
Next
Linkbelt.Value = l
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

Similar Threads


Top