Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel Marco to load in every spreadsheet

Posted on 2014-09-05
3
Medium Priority
?
285 Views
Last Modified: 2014-09-05
Hello Experts Exchange
Is it possible to save a Excel Marco once and have it available for every spreadsheet I open on my machine?

Regards

SQLSearcher
0
Comment
Question by:SQLSearcher
3 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 40305378
Hi,

Create a Workbook and save it in

C:\Users\<username>\AppData\Roaming\Microsoft\Excel\XLSTART

See instructions here:
http://office.microsoft.com/en-001/excel-help/copy-your-macros-to-a-personal-macro-workbook-HA102174076.aspx

Regards
0
 
LVL 11

Expert Comment

by:Swapnil Nirmal
ID: 40305470
Just store your code in Personal.xlsb. If you dont have personal.xlsb then follow below steps:

    On the Developer tab, in the Code group, click Record Macro.
    Record Macro
    In the Record Macro dialog box, type a name for the macro in the Macro name box, such as BoldMe. Make sure you don’t use any spaces in the name.
    In the Store macro in box, select Personal Macro Workbook.
    Record Macro dialog box
    Click OK.
    On the Developer tab, in the Code group, click Stop Recording.
    Stop Recording
    Close any open workbooks and then exit Excel.
    A message appears that prompts you to save the changes that you made to the Personal Macro Workbook.
    Click Yes to save the personal workbook.

Now next time when you open excel, press Alt+F11 and then personal.xlsb will always be available. Add your code to any of the modules in personal.xlsb
0
 

Author Closing Comment

by:SQLSearcher
ID: 40305484
Thank you very much for your help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question