Macros in XlStart directory

Posted on 2005-05-05
Last Modified: 2013-12-25
I have created a macro and assigned it into a button on a toolbar.  I wish to have this macro available to me anytime.  Problem is I saved it in the XlStart folder, but everytime I launch Excel, it opens the workbook.  I want the macro to be available, but I do not want the workbook to be seen.
Question by:mak345
    1 Comment
    LVL 35

    Accepted Solution


    Save the workbook as an add-in, close the workbook, then enable the add-in.  You will have to change the macro reference on the toolbar button to reflect the add-in.  Keep in mind while doing this that although the macro names won't show up on the macro listing, if you manually type in the macro name it will work.  You may have to qualify it like:

    Another way would be to make the workbook hidden (Window / Hide), and you won't see the workbook when it is loaded.  That is what excel does with your PERSONAL.XLS file.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    755 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