Code: Select all
Set cbr = Application.CommandBars.Add(BarName, msoBarTop, False, True)
Any guidance will be greatly appreciated.
Code: Select all
Set cbr = Application.CommandBars.Add(BarName, msoBarTop, False, True)
Thank you HansHansV wrote:You can't create a custom toolbar in the interface of Word 2007 (nor in Access 2007, Excel 2007 or PowerPoint 2007; you can in Outlook 2007 since it still uses the old menu/toolbar interface).
The culprit in this case was a corrupted Normal.dotmDon Wells wrote:Code: Select all
Set cbr = Application.CommandBars.Add(BarName, msoBarTop, False, True)
As Hans has implied, this is code that was developed in Office 2000 and 2003; then with the implementation of 2007, carried across without change. My customization by code consists of deleting and rebuilding.JudyL wrote:"The preceding line of code is working on some machines"
So, Don, you mean that this code creates a customizable toolbar in 2007? (I'm code-ignorant.)