Solved

Excel Marco to load in every spreadsheet

Posted on 2014-09-05
3
240 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 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you very much for your help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

771 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now