I recorded the following code in Excel
Application.CommandBars("RebarToolbar").Controls.Add Type:=msoControlButton, _
ID:=2089, Before:=6
as i want to add buttons to a custom toolbar.
but it doesn't work, why?