commandbar for more than one session

  • Thread starter Thread starter Michael.Kensy
  • Start date Start date
M

Michael.Kensy

Hi,

I wrote some vba-code for creating a commandbar (popupstyle) and all buttons
on. Using this buttons changes ActiveExplorer.CurrentFolder. This code is
working fine for one session (of operating system)...
when I do restart my computer I can still see the commandbar but it isn't
working. The button looks like a popupcommandbar but nothing happens on it.
What do I have to do for leaving the commandbar unchanged at the end of a
session? Did I miss something or do I have to rebuild the commanbar every
session ...

Thanx
Michael
 
Hi Ken,

I will do even it isn't easy because the commandbar contains indeterminated
buttons. User creates this commandbar of any public folder he is interested
in ... but please ...

Ken Slovak - said:
Always declare a CommandBar as temporary when you create it. In your
startup code always create it again.

....I do have a second question. Why does a popup commandbar look different
to a MS built in?
I'am using that code

Set objPopupCommandBar = objCommandBar.Controls.Add(msoControlPopup)
objPopupCommandBar.Caption = objFolder.Name

There is an arrow right of buttons caption but it is very small. Do I have
to use another way?

Michael
 
Back
Top