Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Can't write to Tag property on Tabstrip

This one has really got me pulling my hair out!

I want to store a short text string in the tag property of each tab on
a tabstrip using, eg.
Me.TabStrip1.Tabs(1).Tag = "newtag"

I don't get any error doing this but when I try to retrieve the string
I still get the default "Tab2"

Does anyone else see get this result? Any ideas?

Thanks,
Andrew

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Can't write to Tag property on Tabstrip

Hi
AFAIK the Tag property is for the Tabstrip not the individual Tabs.

Therefore you can set the Tag as......

Me.Tabstrip1.Tag = "newtag"

Your coding does not work for me in Excel 2002 either.

--
Cheers
Nigel



wrote in message
oups.com...
This one has really got me pulling my hair out!

I want to store a short text string in the tag property of each tab on
a tabstrip using, eg.
Me.TabStrip1.Tabs(1).Tag = "newtag"

I don't get any error doing this but when I try to retrieve the string
I still get the default "Tab2"

Does anyone else see get this result? Any ideas?

Thanks,
Andrew



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Can't write to Tag property on Tabstrip

Hi Nigel,

If you declare a variable as,
Dim tb as msforms.tab
then tb.tag is listed as an available property (ie. separate from the
tabstrip tag). tb.tag will return the tag name of the tab in question
(eg. "tab1" or "tab2" etc.) but it appears to be write only - I can't
change the "tab2" to "newtabname".

Never mind, I will store the names I want in an array instead. Thanks
for testing for me.

Cheers,
Andrew


"Nigel" wrote in message ...
Hi
AFAIK the Tag property is for the Tabstrip not the individual Tabs.

Therefore you can set the Tag as......

Me.Tabstrip1.Tag = "newtag"

Your coding does not work for me in Excel 2002 either.

--
Cheers
Nigel



wrote in message
oups.com...
This one has really got me pulling my hair out!

I want to store a short text string in the tag property of each tab on
a tabstrip using, eg.
Me.TabStrip1.Tabs(1).Tag = "newtag"

I don't get any error doing this but when I try to retrieve the string
I still get the default "Tab2"

Does anyone else see get this result? Any ideas?

Thanks,
Andrew

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
tabstrip when chart is saved as webpgae SteveEldridge Excel Discussion (Misc queries) 0 September 19th 06 09:10 AM
Tabstrip control Ric[_4_] Excel Programming 1 March 6th 04 11:08 PM
Adding tabstrip and runtime Michael J. Malinsky Excel Programming 4 August 4th 03 11:07 PM
DataCombo seems locked after changing TabStrip Reiner Wolff Excel Programming 2 July 22nd 03 04:48 PM
DataCombo seems locked after changing TabStrip Reiner Wolff Excel Programming 0 July 22nd 03 11:18 AM


All times are GMT +1. The time now is 02:11 AM.

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"