Solved

Excel Marco to load in every spreadsheet

Posted on 2014-09-05
3
272 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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

630 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