Ed
Tue Jun 06 08:55:18 CDT 2006
Thanks, Jean-Guy. I'm thinking this is going to create some problems. I
depend on my users seeing the name right there - a menu they've not seen
before, so it must be connected with this program they're running. If they
don't see it, they might not look for it - they'll just call me a hundred
times a day instead to ask how to do things! Maybe a modeless UserForm that
can be parked off to the side is the new way to go.
Is this new UI going to change the way you do things?
Ed
"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> wrote in message
news:%23HKMd7QiGHA.3408@TK2MSFTNGP05.phx.gbl...
> Ed was telling us:
> Ed nous racontait que :
>
>> I've been reading a few things about the new Ribbon UI coming up.
>> Currently, I have some macros which create new toolbar menu items
>> using code like:
>> Set newMenu = tlbr.Controls.Add(Type:=10)
>> With newMenu
>> .Caption = "Restore Toolbars"
>> .Enabled = True
>> With .Controls.Add(Type:=msoControlButton)
>> .Caption = "Restore"
>> .OnAction = "TlBarsReturn"
>> End With
>> End With
>>
>> When the Ribbon comes out, will this code be disallowed and break my
>> macros?
>
> It will still work, but your custom control will be part of the Add-in
> tab, i.e, it will not be displayed until the user clicks on the Add-in tab
> of the Ribbon.
> Also, since toolbars are not displayed anymore, the code will run, but
> only the customized controls will appear under the Add-in tab, not the
> whole toolbar itself; unless "tlbr" is defined as a custom toolbar, not a
> built-in one, in that case, the whole custom toolbar will be displayed
> under the Add-in tab.
>
> At least this is my understanding and the result I got with some custom
> toolbar I tested with Office 12.
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site:
http://www.word.mvps.org
>