Control Type:=msoCommandGrid geht nicht

Hallo,

ich möchte eine eigene CommandBar gestalten für eine alternative Farbauswahl. Die embedded CommandBar „Fill Color“ hat Controls mit dem Type msoControlGrid. Versuche ich per Code solch ein Control mit Add zu erzeugen, bekomme ich den Fehler „Ungültiger Prozeduraufruf oder ungültiges Argument“.

Dim my As CommandBar
Dim myc As CommandBarControl
Set my = Application.CommandBars.Add
Set myc = my.Controls.Add(Type:=msoControlGrid) PENG!

Wer weiß weiter???

Ahoi, Joe

Hi Joe,

leider kann ich nicht helfen, nur ein Frage am Rande, worum geht es?

Ich tippe auf ExcelVBA, Excel 2000 oder höher. Richtig?

Gruß Rainer

Hallo Rainer,

jepp, Office 2003, in diesem Fall PowerPoint.

Habe noch mal bei msdn recherchiert:

msoControlGrid Grid. Cannot be created through the object model.

schade. Aber wie dann?