J
Jack
I am trying to add a command bar to a new explorer window that is opened by
right clicking on the folder and selecting open in new window. I've
declared: Private WithEvents colExpl As Outlook.Explorers and have the code
to create a new command bar in the colExpl_NewExplorer event using:
Set tExpl = Explorer
Set oCommandBar = tExpl.CommandBars.Add(Name:=ShortAppName,
Position:=msoBarTop, Temporary:=True)
Set CBLogo = LoadCommandButton(oCommandBar, HelpFileName & " Help", 285, 3,
ShortAppName & " tasks", False, msoControlButton)
....
However, the oCommandBar always return nothing when I try to set it, I
assume since the explorer is not yet fully initialized.
Is there another way to do this?
Jack
right clicking on the folder and selecting open in new window. I've
declared: Private WithEvents colExpl As Outlook.Explorers and have the code
to create a new command bar in the colExpl_NewExplorer event using:
Set tExpl = Explorer
Set oCommandBar = tExpl.CommandBars.Add(Name:=ShortAppName,
Position:=msoBarTop, Temporary:=True)
Set CBLogo = LoadCommandButton(oCommandBar, HelpFileName & " Help", 285, 3,
ShortAppName & " tasks", False, msoControlButton)
....
However, the oCommandBar always return nothing when I try to set it, I
assume since the explorer is not yet fully initialized.
Is there another way to do this?
Jack