Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2000 VBA - creating new Command Bar

Status
Not open for further replies.

ABH29

Programmer
Apr 15, 2002
2
AU
Hi,

I am trying to create a new Command Bar object using VBA in Excel 2000. I use the following line of code:

Set myToolBar = CommandBars.Add("Custom",msoBarTop)

When I run the code I get a runtime 5 - invalid procedure call or argument error. Would appreciate any help that anyone has in overcoming this problem.

Thanks
ABH
 
Hi ABH29

Under what circumstances you got the run-time error.
When you run the procedure the first time?
Or with subsequence running?

by the way, it's works fine in my machine, running Excel2000.

regards
LSTAN

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top