ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   error message Method €˜Add of object €˜CommandBar Controls fail? (https://www.excelbanter.com/excel-discussion-misc-queries/247014-error-message-method-%E2%80%98add%E2%80%99-object-%E2%80%98commandbar-controls%E2%80%99-fail.html)

Sandy Pringle

error message Method €˜Add of object €˜CommandBar Controls fail?
 
When opening 2007 Excel I get the following message:

Run-time error €˜2147467259 (80004005)
Method €˜Add of object €˜CommandBar Controls failed

Program seems to work OK.
Is there something I need to do?


Jim Thomlinson

error message Method €˜Add of object €˜CommandBar Controls fail?
 
2007 does not have a command bar. It uses the ribbon. Hard to add something
to a command bar that does not and can not exist. The code will need to be
changed if the command bar is required.
--
HTH...

Jim Thomlinson


"Sandy Pringle" wrote:

When opening 2007 Excel I get the following message:

Run-time error €˜2147467259 (80004005)
Method €˜Add of object €˜CommandBar Controls failed

Program seems to work OK.
Is there something I need to do?


Dave Peterson

error message Method ‘Add’ of object‘CommandBar Controls’ fail?
 
The commandbar code should still work. Any toolbars created will show up on the
Addins tab of the ribbon.

(I don't have a guess why the OP's problem occurs, though.)

Jim Thomlinson wrote:

2007 does not have a command bar. It uses the ribbon. Hard to add something
to a command bar that does not and can not exist. The code will need to be
changed if the command bar is required.
--
HTH...

Jim Thomlinson

"Sandy Pringle" wrote:

When opening 2007 Excel I get the following message:

Run-time error €˜2147467259 (80004005)
Method €˜Add of object €˜CommandBar Controls failed

Program seems to work OK.
Is there something I need to do?


--

Dave Peterson


All times are GMT +1. The time now is 08:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com