Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2006

Tip: Looking for answers? Try searching our database.

How to make a macro present in all workbooks?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kayard - 21 Mar 2006 22:41 GMT
Hi, does anybody know how can I make a new macro just recorded appear i
all workbooks ?

I tried creating a template called Book.xlt in the proper directory an
then I recorded the macro in that file, i saved as a template but i
didn't work ..
Dave Peterson - 22 Mar 2006 00:07 GMT
Instead of putting the code in every workbook, you may find it easier to create
a workbook that stores all your macros.

If you won't share this file with others, then call it personal.xls.  If you
share it with others, call it KayardsUtils.xls.

Store it in your XLStart folder.

Then when excel starts, this macro workbook will be opened and you'll be able to
access the macros.

By dedicating a workbook to hold the macros, you won't have millions (er, 10s)
of files that need to be updated when the routine should change.

And to give you/users a way to run that macro, I'd either use stuff added to the
worksheet menubar or a dedicated toolbar.

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)

> Hi, does anybody know how can I make a new macro just recorded appear in
> all workbooks ?
[quoted text clipped - 8 lines]
> kayard's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24716
> View this thread: http://www.excelforum.com/showthread.php?threadid=525015

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.