Toolbars that won't stay in place

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Excel 2002. Have several custom toolbars attached to certain files, and each button has a macro associated with it. When you keep a file in the same directory and never rename or save as another name, excel has no problem finding the toolbars or macros. However, when you use a file on different PC's (work and home), every time you pull it up it from the new location, excel can't find the macros associated with the toolbars

To get around this, you can attach the toolbars to the file but use an auto_close macro which deletes the toolbars each time you close the file. Then when you reopen the file, the attached toolbars are there and excel can find the macros. However, this too creates a problem - the toolbars will not stay in place, and every time you open the file, you have to rearrange the toolbars

It is very frustrating to not be able to accomplish what should be a simple task. If anyone has any ideas on this, please respond. Thank you.
 
Can you not just specify the tool bar positions using the
Workbook_Open event or Auto_Open macro or am I missing
something?

Application.CommandBars("MyToolbar").Position = msoBarTop
or
With Application.CommandBars("MyToolBar")
.Left = 100
.Top = 50
End With

Regards,
Greg

-----Original Message-----
Using Excel 2002. Have several custom toolbars attached
to certain files, and each button has a macro associated
with it. When you keep a file in the same directory and
never rename or save as another name, excel has no problem
finding the toolbars or macros. However, when you use a
file on different PC's (work and home), every time you
pull it up it from the new location, excel can't find the
macros associated with the toolbars.
To get around this, you can attach the toolbars to the
file but use an auto_close macro which deletes the
toolbars each time you close the file. Then when you
reopen the file, the attached toolbars are there and excel
can find the macros. However, this too creates a problem -
the toolbars will not stay in place, and every time you
open the file, you have to rearrange the toolbars.
It is very frustrating to not be able to accomplish what
should be a simple task. If anyone has any ideas on this,
please respond. Thank you.
 

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

Back
Top