Discussion Locked

Excel Macros

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is it possible to save a Macro in Excel in such a way that every time I open a new spreadsheet, the macro appears in the new spreadsheet?

2 replies

by dklippert

Save the macro to the Personal Macro Workbook.
If you record it look at "Store macro in:"
To see the workbook go to "Window Unhide".

by sgt_shultz

a wonderful precise answer, imho, and just adding 2 cents: put button linked to macro on toolbar in new spreadsheet. save as File Type template.
here is snipped from Excel 2000 Help search keyword 'default' many other interesting hits there to put a finer point on things if you need it.
Create a workbook template for new workbooks
Create a workbook that contains the sheets, default text (such as page headers and column and row labels), formulas, macros, styles, and other formatting you want in new workbooks that you base on the template.

On the File menu, click Save As.
Show Me

In the Save as type box, click Template (*.xlt).

In the Save in box, select the folder where you want to store the template.
To create the default workbook template, select either the XLStart folder or the alternate startup folder. The XLStart folder is usually
C:\os\Profiles\user_name\Application Data\Microsoft\Excel\XLStart
where os is the operating system folder ? for example, Windows.

To create a custom workbook template, select the Templates folder, which is usually
C:\os\Profiles\user_name\Application Data\Microsoft\Templates
where os is the operating system folder, for example, Windows.

In the File name box, type book to create a default workbook template.
To create a custom template, type any valid file name.

Tip To display a picture of the first page of a template in the Preview box of the New dialog box (File menu), click Properties on the File menu, click the Summary tab, and then select the Save preview picture check box.

This discussion is closed to new replies.