Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pam Coleman
 
Posts: n/a
Default Macro in all workbooks

When I record a macro the option for store macro in, I chose In this
workbook, there is no options for all open workbooks. How do I make this
macro be available in all my workbooks? If I create a custom button on the
toolbar will this allow the macro to run? Thanks
  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

To make the macro available to all your workbooks, select 'Personal Macro
Workbook'.
As per John Walkenbach's book 'Microsoft Excel 2000 Power Programming with
VBA'... If you create some VBA macros that you find [particularly useful, you
may want to store these routines on your Personal Macro Workbook. This is a
workbook (Personal.xls) that is stored in your XlStart directory. Whenever
you record a macro, one of your options is to record it to your Personal
Macro Workbook. The Personal.xls file doesn't exist until you record a macro
to it'.

HTH,
Gary Brown


"Pam Coleman" wrote:

When I record a macro the option for store macro in, I chose In this
workbook, there is no options for all open workbooks. How do I make this
macro be available in all my workbooks? If I create a custom button on the
toolbar will this allow the macro to run? Thanks

  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

Note thought that this makes it available to all your workbooks, when YOU
open them. If you wnat the code stored in each workbook such that anyone
can run them then you need to store the code in each book separately, or
have the other person/people store it in their personal.xls

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Gary Brown" wrote in message
...
To make the macro available to all your workbooks, select 'Personal Macro
Workbook'.
As per John Walkenbach's book 'Microsoft Excel 2000 Power Programming with
VBA'... If you create some VBA macros that you find [particularly useful,

you
may want to store these routines on your Personal Macro Workbook. This is

a
workbook (Personal.xls) that is stored in your XlStart directory.

Whenever
you record a macro, one of your options is to record it to your Personal
Macro Workbook. The Personal.xls file doesn't exist until you record a

macro
to it'.

HTH,
Gary Brown


"Pam Coleman" wrote:

When I record a macro the option for store macro in, I chose In this
workbook, there is no options for all open workbooks. How do I make

this
macro be available in all my workbooks? If I create a custom button on

the
toolbar will this allow the macro to run? Thanks



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
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM
Help with Macro (copying data from multiple workbooks) Tim Harding Excel Discussion (Misc queries) 1 February 5th 05 10:37 PM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
Workbooks...I'll try this again... Markster Excel Discussion (Misc queries) 10 December 7th 04 10:12 PM
Macro and If Statement SATB Excel Discussion (Misc queries) 2 December 3rd 04 04:46 PM


All times are GMT +1. The time now is 05:07 AM.

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"