Application.BaseCalendarDelete method (Project)

Deletes a base calendar.

Syntax

expression. BaseCalendarDelete( _Name_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Name Required String String. The name of the base calendar to delete.

Return value

Boolean

Example

The following example deletes the base calendar entered by the user.

Sub DeleteCalendar() 
 
 Dim CalendarName As String 
 
 CalendarName = InputBox$("Enter name of base calendar to delete:") 
 BaseCalendarDelete Name:=CalendarName 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.