Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default How to get a macro to work in different workbooks ?

Hi

How do I get a macro to work in different workbooks without having to copy
it in to every workbook. I have tried to create a button on the toolbar but
it does not work.

Susanne
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default How to get a macro to work in different workbooks ?

Susanne, put it in your personal.xls file, this is where you store the
macros that you want to be available for all your workbooks. Have a look
here for more information

http://www.mvps.org/dmcritchie/excel/getstarted.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Susanne" wrote in message
...
Hi

How do I get a macro to work in different workbooks without having to copy
it in to every workbook. I have tried to create a button on the toolbar
but
it does not work.

Susanne



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default How to get a macro to work in different workbooks ?

Hi
Store your macros into a personnal.xls workbook hide its window, save and
place this workbook in the Excel Startup folder.
This will allow your macros to be available each time you open Excel.

HTH
Cordially
Pascal


"Susanne" a écrit dans le message de
...
Hi

How do I get a macro to work in different workbooks without having to copy
it in to every workbook. I have tried to create a button on the toolbar

but
it does not work.

Susanne



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to get a macro to work in different workbooks ?

Show the code that doesn't work.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Susanne" wrote in message
...
Hi

How do I get a macro to work in different workbooks without having to copy
it in to every workbook. I have tried to create a button on the toolbar

but
it does not work.

Susanne



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to get a macro to work in different workbooks ?

You can assign the macro to the button. The macro can be in any workbook.
when the button is pushed, the workbook is opened (if not already open) and
runs the macro. The workbook must be accessible to excel and you should not
move the workbook.

If you didn't assign the macro to the button, then that would be your
problem. Otherwise, it should work (the macro should be in a general module
in the workbook - not a sheet module or the thisworkbook module).

the advantage of using personal.xls is that it is opened when excel is
opened. Also, it is hidden by default.

--
Regards,
Tom Ogilvy

"Susanne" wrote in message
...
Hi

How do I get a macro to work in different workbooks without having to copy
it in to every workbook. I have tried to create a button on the toolbar

but
it does not work.

Susanne



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make several workbooks work together? Elisabeth New Users to Excel 3 December 28th 09 03:57 PM
Macro to update a column in a work based on another work sheet WickerMan New Users to Excel 1 December 4th 09 12:58 PM
Making links between workbooks work cheryl Excel Discussion (Misc queries) 1 July 20th 05 10:27 AM
Edit Macro to work for other Workbooks DAA[_2_] Excel Programming 1 April 19th 04 12:33 PM
Macro, Persoanl Work book and CSV workbooks James Agostinho Excel Programming 2 February 13th 04 03:43 AM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"