Hello,
I found this particular piece of code on the Internet at
http://www.rondebruin.nl/win/s2/win012.htm
but it doesn't work for me and I don't understand it. Here it is:
Questions
1) Everytime I run any of the macros (Hide ribbon, DisplayRibbon, DisplayRibbon_1, DisplayRibbon_2 or DisplayRibbon_3) it gets trapped in
the MsgBox "Error, Save/Restart your workbook" line???? Why?
2) Who calls this function:
'Callback for customUI.onLoad
Sub RibbonOnLoad(ribbon As IRibbonUI)
Set Rib = ribbon
End Sub
3) Who calls this function:
Sub GetVisible(control As IRibbonControl, ByRef visible)
If myId = "show" Then
visible = True
Else
If control.Id Like myId Then
visible = True
Else
visible = False
End If
End If
End Sub
3) What does he mean by this comment:
'Callback for customUI.onLoad
Does it mean I have to call this from custom UI editor... if so where in CUI???
4) Finally, why doesn't the above sample work for me?
Thanks all for your help
rn
Bookmarks