Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

If you perform a task repeatedly in Microsoft Office Project, you can automate the task with a macro. A macro is a series of commands and functions that are stored in a module and can be run whenever you need to perform the task.

  1. On the View tab, select Macros, and then select Record Macro.

    (In Project 2007, on the Tools menu, point to Macro, and then select Record New Macro.)

  2. In the Macro name box, type a name for the macro.

    The first character of the macro name must be a letter. Other characters can be letters, numbers, or underscore characters. Blank spaces are not allowed in a macro name, but the underscore works well as a word separator.

  3. To be able to run the macro by pressing a shortcut key, enter a letter or key combination in the Shortcut key box.

    You can use CTRL+letter (for lowercase letters) or CTRL+SHIFT+letter (for uppercase letters), where letter is any letter key on the keyboard, but not a number or special character. You cannot use a key combination that is already in use in Microsoft Office Project.

  4. In the Store macro in list, select the location where you want to store the macro:

    • To make the macro available whenever you use Project, select Global File.

    • To make the macro available for the current project only, select This Project.

  5. To include a description of the macro, type the description in the Description box.

  6. If you select cells while recording a macro, the macro will select the same column (field) each time it is run, regardless of which cell is first selected, because it records absolute references to columns. If you want a macro to select columns regardless of the position of the active cell when you run the macro, select Relative under Column references.

    Conversely, the macro will select rows regardless of the position of the active cell when you run the macro because it records relative references to rows. If you want a macro to always select the same row, regardless of which cell is first selected, select Absolute (ID) under Row references.

    Note: Project continues to use these settings while recording macros until you either change the settings or close Project.

  7. Select OK, and then perform the actions that you want to record.

  8. When you have completed all of the actions that you want to record, on the View tab, select Macros, and then select Stop Recording.

    (In Project 2007, on the Tools menu, point to Macro, and then select Stop Recorder.)

Security Note: Because macros can contain viruses, be careful about running them. Take the following precautions: run up-to-date antivirus software on your computer; set your macro security level to high; clear the Trust all installed add-ins and templates check box; use digital signatures; maintain a list of trusted publishers.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×