Creating a Custom Menu Item in MS Project

Embed Size (px)

Citation preview

  • 7/28/2019 Creating a Custom Menu Item in MS Project

    1/1

    Creating a Custom Menu Item in MS Project that

    Calls Project VBA Macros

    The steps for creating the custom toolbar in MS Project are:Tools>Customize>Toolbars

    select Commands

    in Categories, scroll down to New Menu

    in the Commands box to the right, press New Menu, and drag to the location in the toolbar you want it

    to go, e.g. between Tools and Project while holding down the left mouse key

    release the left mouse key when you positioned the New Menu at the location you have selected.

    Now, right click the New Menu in the toolbar, and enter a title in the Name: box, e.g. Linda's Scheduling

    Tools . Click Close on the Customize box, the Linda's Scheduling Tools menu item should remain in the

    toolbar.

    Now, open the Macros Carrier project file I sent you, click in the toolbar Tools>Macro>Macros, themacros should appear in a drop down list. Click on a macro, and drag it to the Linda's Scheduling Tools

    menu item, release the mouse key, it should now be a drop down menu item under Linda's Scheduling

    Tools. Repeat for each macro.

    There is an additional step if you want the macros available for all projects.

    In MS Project, open the Macros Carrier.mpp file I sent you, then go to Tools>Organizer>Modules.

    In the right hand box should be a listing of the macros, in the left hand box should be what is in your

    "Global.mpt" file.

    In the right hand box, select a macro by clicking on it, then click the "Copy" button in the middle area.

    The macro should be copied into the left hand side box and now is part of your Global.mpt file.

    Repeat for all macros that you want.The Global.mpt file is a master template file for MS Project that stores all macros etc.

    This step will make the macros available to any MS Project file open in MS Project without having to

    save the macros within each project.mpp file.

    You are done!!

    The macros should launch from using Linda's Scheduling Tools menu item like any other MS Project

    menu selection.

    A useful reference for learning more about MS Project VBA macros is VBA Programming for Microsoft

    project Office Project: Versions 98 through 2007 by Rod Gill, published by SohoCorp.,http://www.msprojectexperts.com. ISBN: 0-9759828-7-7, the official book website is

    http://www.projectvbabook.com. The book offers several VBA macro examples .

    Also, Microsoft offers a free Software Development Kit (SDK) for MS Project VBA that explains the VBA

    objects and offers examples of their use,

    http://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-

    18cb1eed1abe&displaylang=en

    http://www.msprojectexperts.com/http://www.msprojectexperts.com/http://www.msprojectexperts.com/http://www.projectvbabook.com/http://www.projectvbabook.com/http://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=enhttp://www.microsoft.com/downloads/details.aspx?familyid=2672f6f9-7028-4b30-99a2-18cb1eed1abe&displaylang=enhttp://www.projectvbabook.com/http://www.msprojectexperts.com/