AutoSaveToGlobal Method
Collapse the table of content
Expand the table of content

Application.AutoSaveToGlobal Method (Project)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Specifies whether to automatically add new views, field templates, filters, and groups to the global template (Global.mpt).

expression .AutoSaveToGlobal(OnOff)

expression An expression that returns an Application object.




Data Type





If True, automatically save. The default value is False.

Return Value


If AutoSaveToGlobal is off, you can manually save views, groups, and other items to the global template by using the Organizer dialog box. Click the Office Button, click the Info tab, and then click Manage Global Template.

Note Note

If AutoSaveToGlobal successfully runs, it always returns True.

To see the results, run AutoSaveToGlobal OnOff:=True in the Immediate pane of the VBE, and then create and save a view. For example, do the following:

  1. In a new project, create three tasks (T1, T2, and T3) and two resources (R1 and R2).

  2. Assign one of the tasks to R1 and the other two tasks to R2.

  3. Click the View tab in the Ribbon. In the Data group, click Using Resource in the drop-down list for Filter.

  4. In the Using Resource dialog box, select R2 for the task filter.

  5. In the Resource Views group, click Other Views, and then click Save View. For example, save the view with the name R2 View Test.

  6. Click Other Views again, and then click More Views. The Views list contains the view you saved.

  7. In the More Views dialog box, click Organizer. Scroll through the Global (+ non-cached Enterprise) list to see that R2 View Test was automatically added to the global template.

© 2016 Microsoft