Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Hide/unhide personal ribbon tab.

Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want the
tab to be hidden.

What must i add to my code before generate Callbacks and maybe further add
in my vba.


Best regards from

Joergen Bondesen



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Hide/unhide personal ribbon tab.

You can use getvisible to do this

Download the example workbook from my site
You can run the code with the activate/deactivate event of the sheets
http://www.rondebruin.nl/ribbon.htm

See point 3


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message ...
Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want the
tab to be hidden.

What must i add to my code before generate Callbacks and maybe further add
in my vba.


Best regards from

Joergen Bondesen



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Hide/unhide personal ribbon tab.

Hi Run

Thanks for reply.

I have downloaded your file.
I have copied the MUDULE: 'RibbonModule' to my file

I have changed my xml code, but it do not work, why?
(I suppose the proble is: idMso)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?

<customUI onLoad="ribbonLoaded"
xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab idMso="jbTab" getVisible="GetVisible" /

<tab id="jbTab" label="VBA" insertAfterMso="TabHome"


<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI


Best regards
Joergen Bondesen


"Ron de Bruin" skrev i en meddelelse
...
You can use getvisible to do this

Download the example workbook from my site
You can run the code with the activate/deactivate event of the sheets
http://www.rondebruin.nl/ribbon.htm

See point 3


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message
...
Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want the
tab to be hidden.

What must i add to my code before generate Callbacks and maybe further
add in my vba.


Best regards from

Joergen Bondesen __________ Information from ESET NOD32 Antivirus,
version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Hide/unhide personal ribbon tab.

Hi Joergen

I must go now so I have no time to look at your xml but if you send me your test file private
I take a look at it when I am home

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message ...
Hi Run

Thanks for reply.

I have downloaded your file.
I have copied the MUDULE: 'RibbonModule' to my file

I have changed my xml code, but it do not work, why?
(I suppose the proble is: idMso)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?

<customUI onLoad="ribbonLoaded"
xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab idMso="jbTab" getVisible="GetVisible" /

<tab id="jbTab" label="VBA" insertAfterMso="TabHome"


<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI


Best regards
Joergen Bondesen


"Ron de Bruin" skrev i en meddelelse
...
You can use getvisible to do this

Download the example workbook from my site
You can run the code with the activate/deactivate event of the sheets
http://www.rondebruin.nl/ribbon.htm

See point 3


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message
...
Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want the
tab to be hidden.

What must i add to my code before generate Callbacks and maybe further
add in my vba.


Best regards from

Joergen Bondesen __________ Information from ESET NOD32 Antivirus,
version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Hide/unhide personal ribbon tab.

I am home and looked at your xml

This will work OK
Call the macro to show your tab


<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<customUI onLoad="ribbonLoaded" xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab id="jbTab" label="VBA" insertAfterMso="TabHome" getVisible="GetVisible"

<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ron de Bruin" wrote in message ...
Hi Joergen

I must go now so I have no time to look at your xml but if you send me your test file private
I take a look at it when I am home

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message ...
Hi Run

Thanks for reply.

I have downloaded your file.
I have copied the MUDULE: 'RibbonModule' to my file

I have changed my xml code, but it do not work, why?
(I suppose the proble is: idMso)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?

<customUI onLoad="ribbonLoaded"
xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab idMso="jbTab" getVisible="GetVisible" /

<tab id="jbTab" label="VBA" insertAfterMso="TabHome"


<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI


Best regards
Joergen Bondesen


"Ron de Bruin" skrev i en meddelelse
...
You can use getvisible to do this

Download the example workbook from my site
You can run the code with the activate/deactivate event of the sheets
http://www.rondebruin.nl/ribbon.htm

See point 3


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message
...
Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want the
tab to be hidden.

What must i add to my code before generate Callbacks and maybe further
add in my vba.


Best regards from

Joergen Bondesen __________ Information from ESET NOD32 Antivirus,
version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Hide/unhide personal ribbon tab.

Hi Ron.

It works perfect, thanks.
(I can see my mistake now, 8-))

--
Best regards
Joergen Bondesen


"Ron de Bruin" skrev i en meddelelse
...
I am home and looked at your xml

This will work OK
Call the macro to show your tab


<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<customUI onLoad="ribbonLoaded"
xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab id="jbTab" label="VBA" insertAfterMso="TabHome"
getVisible="GetVisible"

<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ron de Bruin" wrote in message
...
Hi Joergen I must go now so I have no time to look at your xml but if you
send me your test file private
I take a look at it when I am home

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message
...
Hi Run

Thanks for reply.

I have downloaded your file.
I have copied the MUDULE: 'RibbonModule' to my file

I have changed my xml code, but it do not work, why?
(I suppose the proble is: idMso)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?

<customUI onLoad="ribbonLoaded"
xmlns="http://schemas.microsoft.com/office/2006/01/customui"

<ribbon

<tabs

<!-- hide/display My personal Tab --

<tab idMso="jbTab" getVisible="GetVisible" /

<tab id="jbTab" label="VBA" insertAfterMso="TabHome"


<group id="customGroup1" label="jbs"

<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /

<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /

<button id="customButton3" label="Bad Hyberlinks" size="large"
onAction="Macro3" imageMso="HyperlinkInsert" /

</group


</tab

</tabs

</ribbon

</customUI


Best regards
Joergen Bondesen


"Ron de Bruin" skrev i en meddelelse
...
You can use getvisible to do this

Download the example workbook from my site
You can run the code with the activate/deactivate event of the sheets
http://www.rondebruin.nl/ribbon.htm

See point 3


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Joergen Bondesen" wrote in message
...
Hi NG.

I have this code for my personal ribbon tabs and it works fine:


<customUI
xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="MyCustomTab" label="VBA" insertAfterMso="TabHome"

<group id="customGroup1" label="jbs"
<button id="customButton1" label="Ajust Cells" size="large"
onAction="Macro1" imageMso="AccessTableEvents" /
<button id="customButton2" label="Find Letter" size="large"
onAction="Macro2" imageMso="BevelTextGallery" /
<button id="customButton3" label="Bad Hyberlinks"
size="large" onAction="Macro3" imageMso="HyperlinkInsert" /
</group

</tab
</tabs
</ribbon
</customUI


I have 3 sheets in my file and when sheet 2 and 3 is selected, I want
the tab to be hidden.

What must i add to my code before generate Callbacks and maybe further
add in my vba.


Best regards from

Joergen Bondesen __________ Information from ESET NOD32 Antivirus,
version of virus signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4135 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4136 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__________ Information from ESET NOD32 Antivirus, version of virus signature database 4136 (20090606) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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 do I unhide the PERSONAL.XLS worksheet? SteveyP66 Excel Worksheet Functions 1 August 9th 06 12:55 PM
Syntax of hide/unhide personal.xls toggle mikeburg[_32_] Excel Programming 2 September 24th 05 01:24 AM
unhide personal.xls? excelchallenged Excel Discussion (Misc queries) 6 June 15th 05 11:19 PM
unhide personal.xls ..... continued excelchallenged Excel Discussion (Misc queries) 0 June 15th 05 07:17 PM


All times are GMT +1. The time now is 06:43 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"