RibbonX Separator problem

  • Thread starter Thread starter Cresta
  • Start date Start date
C

Cresta

Hello

Does anyone know if there is a bug in the getVisble callback for the
<separator> tag. I am failing to make this item dissappear/appear on demand
using code. I don't think it's me as I can do it OK with other elements.

Thanks
 
Hi,

According to the authors of the book RibbonX Customising the Office 2007
Ribbon this is a bug. It is always visible.

Cheers
Andy
 
Hi Zack

The intention was for a button, a dropdown and a separator to either be
visible or not, depending on the user that was opening the file. The
callbacks were happening, as expected, as the file was being opened, and not
"on demand". The button and dropdown getVisible callbacks worked as expected,
but not the separators.

The Sepatator getVisible callback I had is shown:

Sub sep2_getVisible(ByRef control As IRibbonControl, ByRef ReturnValue As
Variant)
If InStr(UCase(Application.UserName), "XYZ") Then
ReturnValue = True
Else
ReturnValue = False
End If
End Sub



I wish I had checked the forum five minutes earlier, as I would have seen
your message. But I have gone a different route with the ribbon to avoid this
issue.

However, does this sound like there's a bug or was it just me?

Thanks
 
Thanks Andy

Andy Pope said:
Hi,

According to the authors of the book RibbonX Customising the Office 2007
Ribbon this is a bug. It is always visible.

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top