Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel Marco to load in every spreadsheet

Posted on 2014-09-05
3
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
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.

730 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