![]() |
Tab Selection Progmatically ? |
Post Reply ![]() |
Author | |
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() Posted: 27 November 2007 at 5:06am |
Is it possible to select a tab progmatically, ie force a tab selection using software in the Ribbon Bar sample...
|
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Dim ribbon As RibbonBar Set ribbon = CommandBars.ActiveMenuBar ribbon.Tab(3).Selected = True |
|
![]() |
|
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
All i get is
Runtime error '91': Object variable or With block variable not set. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Have to work - its right code. May be you don't have 3 tabs.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
Its the RibbonBar sample, it has more than 3. I may be getting the tabs I see
mistaken for something else. Have a look at it, then laugh at me. If i have got it wrong can you explain what to do. |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
Try check again.
pls note, index 3 shows the fourth tab. ...also you can post the code yu use on ribbonsample. |
|
![]() |
|
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
No alterations have been made to the original code.
Assume a button is used to select tab 2, how would that be coded ? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
ribbon.Tab(1).Selected = True
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
Thanks guys, not got a clue why it did not work at first (Probably stupid user) but I opened new ribbon sample and it worked first time. Again, thanks for helping a newbie..
I'll be back...............(Arnie I think ?) |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |