Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Userform TabStrip questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trefor - 28 Jan 2008 17:58 GMT
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?

Signature

Trefor

Jon Peltier - 29 Jan 2008 03:49 GMT
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
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

>I am trying to design a form and I am using a TabStrip. Depending on what
>my
[quoted text clipped - 3 lines]
>
> Is it possible to add or remove a single tab on a TabStrip?
Trefor - 29 Jan 2008 07:20 GMT
Jon,

Excellent just what I needed, many thanks.

Trefor

Signature

Trefor

> 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
[quoted text clipped - 24 lines]
> >
> > Is it possible to add or remove a single tab on a TabStrip?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.