commandbar for more than one session

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
 
M

Michael.Kensy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top