View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Cresta Cresta is offline
external usenet poster
 
Posts: 76
Default RibbonX Separator problem

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







"Zack Barresse" wrote:

Hi there,

Define "on demand". And post your code please. :)

--
Zack Barresse



"Cresta" wrote in message
...
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