ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro button for all files (https://www.excelbanter.com/excel-programming/428610-macro-button-all-files.html)

chrissy

Macro button for all files
 
How do I allow a macro (created in a test file) to be available for all files
in Excel. I have added the macro to the Quick Access Toolbar, but keep
getting the error:
"Cannot run the macro '<macro name'. The macro may not be available in
this workbook or all macros may be disabled."
I can run macros within files.

FSt1

Macro button for all files
 
hi
you need to place your macros in a personal.xlsb and save it to the xlstart
folder
C:\Program Files\Microsoft Office\Office12\XLSTART (i think).
The file will open automaticly(hidden) when excel starts and all macros in
the personal.xlsb will be available for use on all files.

regards
FSt1


"Chrissy" wrote:

How do I allow a macro (created in a test file) to be available for all files
in Excel. I have added the macro to the Quick Access Toolbar, but keep
getting the error:
"Cannot run the macro '<macro name'. The macro may not be available in
this workbook or all macros may be disabled."
I can run macros within files.



All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com