View Single Post
  #3  
Old 04-05-2007, 06:21
Panjtan
Guest
 
Posts: n/a
Default

Thanx,

I already tried to do so. But at addition of the button I receive an error: Run-time error:


Code:
Application.FrameWork.CommandBars("Menu Bar").Controls.Add("bc6d3e54-d8cd-449a-aa61-cd442d6617eb").Caption = "MyMenu"

Application.FrameWork.CommandBars("MyMenu").Controls.AddCustomButton("2cc24a3e-fe24-4708-9a74-9c75406eebcd", "GlobalMacros.RecordedMacros.MyRectangle").Caption = "Mysubmenu"
Reply With Quote