Quote Originally Posted by quickheads
What's a callback macro?

I guess I really am missing the big picture! LOL!

I did a quick search of these forums for "Callback macro" and see that I need to set-up something like this:

Sub something(control As IRibbonControl, ByRef returnedVal) .....My VBA here ..... End Sub
Is this correct? I'm basically looking for the ability to show or hide the TAB programatically.

I appreciate the help. See sometime I just need a smack to get headed in the right direction.

Thanks,
Dan Yager
QBA Editor
quickheads.com
So you didn't then

Because your CustomUI XML is using getVisible you need a getVisible callback, something like


[vba]

Sub something(control As IRibbonControl, ByRef returnedVal)

Select Case control.ID

Case "CustomTab": returnedVal = True
End Select
End Sub
[/vba]

But getVisible is only required if at some point you intend to toggle its visibility between True and False. If you want it always visible, just use

<tab id="CustomTab" label="OMAR" >
in the XML