reset menu and toolbar usage data

A

Aleksandr

Is it possible to call standard MS Office function "reset menu and toolbar
usage data" (Tools->Customize->Options) from VB code? I need to reset usage
statistics in some cases.
 
A

Aleksandr

Run-time error '-2147467259 (80004005)':
Method 'Reset' of object 'CommandBar' failed
 
A

Aleksandr

What do you mean "manually" ?
Is it possible to reset the data of only one toolbar?

If i press "reset menu and toolbar usage data" button from the menu, it
works just fine. Exactly what i need.
 
A

Aleksandr

In my case (i don't know why), this toolbar can not be reseted - the
"Reset..." button is disabled. :/
Maybe you know the reason or the solution ? I would be very grateful..
 
A

Aleksandr

Yes, that's right. You can not reset the custom toolbar.
I have just found the solution - i needed to have some buttons on the
toolbar at specified place - so i just added PRIORITY property to the button
and selected higher value to it. :)

Thank you very much, Alex, for participating :)

Spasibo ;)
 
Top