Userform TabStrip questions

T

Trefor

I am trying to design a form and I am using a TabStrip. Depending on what my
code determines I would like to set the number of tabs in the code.

Is it possible to Enable / Make visible a single tab on a TabStrip?

Is it possible to add or remove a single tab on a TabStrip?
 
J

Jon Peltier

To test this I created a userform, added a tab strip and two command
buttons. One button adds a new tab at the end, the other removes the last
tab. Here is the code for the buttons:

Private Sub AddButton_Click()
Me.TabStrip1.Tabs.Add
End Sub

Private Sub SubtractButton_Click()
If Me.TabStrip1.Tabs.Count > 1 Then
Me.TabStrip1.Tabs.Remove Me.TabStrip1.Tabs.Count - 1
End If
End Sub

- Jon
 

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