Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Tabstrip tabs entered programmatically disappear after form unload

Hi,
I can enter tabs into a tabstrip programmatically with no problem, but when
I open the form after closing it, the added tabs are not there. I'm using XP
SP2 and Excel 2003. Code as follows:
Sub AddTabs()
Dim TestStrip As TabStrip
Dim TabCounter As Integer
Dim TestTab As Object

TabCounter = 0
Do While Worksheets("Stocks").Cells(21 + TabCounter, 11).Value < ""
Set TestStrip = Form1.TabStrip1
Set TestTab = TestStrip.Tabs.Add("MyTab" & TabCounter + 1, "MyTab" &
TabCounter + 1, TabCounter)
TabCounter = TabCounter + 1
Loop
End Sub

Thanks in advance!
Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Tabstrip tabs entered programmatically disappear after form unload

Examine this code example and see how John uses the designer property:

http://j-walk.com/ss/excel/tips/tip76.htm

--
Regards,
Tom Ogilvy

"cumchee" wrote in message
...
Hi,
I can enter tabs into a tabstrip programmatically with no problem, but

when
I open the form after closing it, the added tabs are not there. I'm using

XP
SP2 and Excel 2003. Code as follows:
Sub AddTabs()
Dim TestStrip As TabStrip
Dim TabCounter As Integer
Dim TestTab As Object

TabCounter = 0
Do While Worksheets("Stocks").Cells(21 + TabCounter, 11).Value < ""
Set TestStrip = Form1.TabStrip1
Set TestTab = TestStrip.Tabs.Add("MyTab" & TabCounter + 1, "MyTab"

&
TabCounter + 1, TabCounter)
TabCounter = TabCounter + 1
Loop
End Sub

Thanks in advance!
Steve



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
How to unload a form in excel vba? Edward[_7_] Excel Programming 2 September 30th 04 04:39 PM
Unload the form on esc key Papou Excel Programming 0 August 10th 04 05:15 PM
Load and Unload Form commands R Avery Excel Programming 4 July 29th 04 03:16 PM
form won't unload inquirer Excel Programming 1 May 26th 04 09:55 AM
Form Unload Khai[_2_] Excel Programming 0 August 4th 03 09:28 PM


All times are GMT +1. The time now is 04:05 PM.

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

About Us

"It's about Microsoft Excel"