Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Userform TabStrip questions

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?

--
Trefor
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Userform TabStrip questions

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
_______


"Trefor" wrote in message
...
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?

--
Trefor



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 201
Default Userform TabStrip questions

Jon,

Excellent just what I needed, many thanks.

Trefor

--
Trefor


"Jon Peltier" wrote:

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
_______


"Trefor" wrote in message
...
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?

--
Trefor




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA userform questionS [email protected] Excel Discussion (Misc queries) 1 February 20th 08 12:07 PM
Three userform questions Chris Cred via OfficeKB.com Excel Programming 6 February 8th 06 08:35 PM
Two UserForm Questions FL Consultant Excel Programming 2 August 19th 05 09:03 AM
Further Userform questions Stuart[_21_] Excel Programming 9 March 25th 05 10:41 AM
Userform Questions Ligaya Excel Programming 1 November 24th 04 07:34 PM


All times are GMT +1. The time now is 02:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"