Late binding code for creating a command bar object

X

XP

Using Office 2003 and Windows XP;

I need example code for late binding to create a command bar object.

e.g. I know it would be something like:

Dim oCmdBar as Object
Dim oCmdBars as Object
Set oCmdBar = VBA.CreateObject("Commandbar")
Set oCmdBars = VBA.CreateObject("Commandbars")

Can someone please help me out with the appropriate syntax?

Thanks much in advance...
 
Top