Toolbar Error - can't find macros

T

Tim879

I am trying to transfer my macros / menus from my work PC to my home
PC.

I have located my personal.xls and also my Excel11.xlb file and copied
them to my home PC.

I created a lot of toolbars that refer to the many macros I've
created, problem is that when I click on these menu buttons on my home
PC, they try to run the macro from the folder where I store my
personal.xls at work.

i.e. my personal.xls is currently stored in:
C:\Documents and Settings\***Carly***\Application Data\Microsoft\Excel
\XLSTART

When I click on when of the menu buttons I've created, it looks for
the macro in
C:\Documents and Settings\***bradshti***\Application Data\Microsoft
\Excel\XLSTART

I added the *'s to emphasize the difference.

I know how to assign a macro to a menu button but this isn't really
feasible to do for the 100+ buttons I have. Is there anyway to change
where these toolbars look for my macros? I can't find any place to
edit this path.
 
D

Dave Peterson

Saved from a previous post:

Your life will become much simpler if you include code to create the toolbar
when the workbook is opened and include code to destroy the toolbar when the
workbook is closed.

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)
 
T

Tim879

Thanks for the great tip. I was considering this option but didn't
know how to do it and wasn't sure if I could "export" my current
settings somehow so that I don't have to recreate the menus from
scratch.

Any suggestions
 
T

Tim879

I should rephrase that - I meant toolbars.

Thanks for the great tip. I was considering this option but didn't
know how to do it and wasn't sure if I could "export" my current
settings somehow so that I don't have to recreate the menus from
scratch.

Any suggestions
 
T

Tim879

I see how the second link works, but unless I am misunderstanding your
point, that would mean I need to recreate my toolbars.

Is there any way to do this where I don't have to recreate them?
 
T

Tim879

Dave,

Thanks for the replies and your help. I really appreciate it. I
definitely plan to use your technique going forward.

Have a great day!
Tim
 

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