Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default CommandBarControl class

apparently, this is not possible ...

Dim cbc As CommandBarControl
Set cbc = New CommandBarControl

??


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default CommandBarControl class

John,

I think the problem is summed up in the help

You tried to instantiate an Automation object, but it was not a creatable
object.

A commandbarcontrol has to be added to a commandbar, it does not exist in
it's own right.

--
HTH

-------

Bob Phillips
... looking out across Poole Harbour to the Purbecks


"John A Grandy" wrote in message
...
apparently, this is not possible ...

Dim cbc As CommandBarControl
Set cbc = New CommandBarControl

??




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default CommandBarControl class

John,

No, that's not possible. You need to use the Add method of the
Controls collection to create the new object. Among other things,
the CommandBarControl object needs to have a Parent object, its
container, so you can't create a new CommandBarControl directly.
Use .Add.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"John A Grandy" wrote in message
...
apparently, this is not possible ...

Dim cbc As CommandBarControl
Set cbc = New CommandBarControl

??




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Class or Training Nikki Excel Discussion (Misc queries) 2 January 2nd 09 08:15 PM
CommandBarControl object Fred Davis Excel Discussion (Misc queries) 14 March 5th 08 02:26 PM
Class lists Andmor Excel Discussion (Misc queries) 1 November 22nd 06 05:34 PM
Class not registered DavidH Excel Discussion (Misc queries) 0 April 16th 06 10:40 PM
how do I set up a workbook for a class Des New Users to Excel 2 May 9th 05 05:58 PM


All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"