Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.83 KB

Project.Application.MakeLocalCalendarEnterprise.md

File metadata and controls

60 lines (36 loc) · 1.83 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.MakeLocalCalendarEnterprise method (Project)
vbapj.chm2369
vbapj.chm2369
project-server
Project.Application.MakeLocalCalendarEnterprise
deb355ad-39ca-77cd-7d0d-f5915c7185da
06/08/2017
medium

Application.MakeLocalCalendarEnterprise method (Project)

Converts a local calendar to an enterprise calendar.

Syntax

expression. MakeLocalCalendarEnterprise( _OldName_, _NewName_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
OldName Optional String Name of the local calendar.
NewName Optional String Name of the Enterprise calendar.

Return value

Boolean

Remarks

The NewName parameter is not used. For example, if a local calendar is named "TestCal" and you execute the code MakeLocalCalendarEnterprise OldName:="TestCal", NewName:="New TestCal" , the result is an enterprise calendar named "TestCal".

To create a local calendar when Project Professional is logged on to Project Server, you must check Allow projects to use local base calendars on the Additional Server Settings page in Project Web Access. Restart Project Professional after changing the setting in Project Web Access.

Example

The following example creates a local calendar named TestCal, and then saves it as an enterprise calendar with the same name. If Project Professional is not logged on Project Server, MakeLocalCalendarEnterprise results in a run-time error 1100.

Sub TestCalendar() 
 BaseCalendarCreate Name:="TestCal" 
 MakeLocalCalendarEnterprise OldName:="TestCal" 
End Sub

[!includeSupport and feedback]