Export (0) Print
Expand All

What's New in Automation for Microsoft Project 2002

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
 

Microsoft Corporation

December 2001

Applies to:
   Microsoft Project Standard 2002
   Microsoft Project Professional 2002
   Microsoft Project Web Access 2002
   Microsoft Project Server 2002

Summary: This article describes the new objects, events, properties and methods in the Microsoft Project 2002 object model. (18 printed pages)

Contents

Introduction
Methods with New, Changed, or Deleted Arguments
Hidden Properties and Methods
New Objects
New Events, Properties, and Methods
   New Methods
   New Properties
   New Events
OLE Programmatic Identifiers
   ActiveX Controls
   Microsoft Access
   Microsoft Excel
   Microsoft Graph
   Microsoft Office Web Components
   Microsoft Outlook
   Microsoft PowerPoint
   Microsoft Word
   Additional Information

Introduction

The new features within Microsoft® Project 2002 object model include better access to a variety of commonly used areas. Many objects, properties and methods have been improved or replaced. To provide backward compatibility, most of the replaced components have been hidden rather than removed. The old code that uses the hidden components will still work correctly without modification, even though the components won't show up by default in the object browser. You should, however, use the new objects, properties and methods when you write new code.

The following tables describe the new events, methods, objects, and properties in Microsoft Project 2002.

Methods with New, Changed, or Deleted Arguments

Methods with arguments that have been added to, changed in, or removed from Microsoft Project 2002, are listed in the following table (sorted alphabetically by method name). Any code that uses these items may produce errors and should be modified accordingly.

ItemObjectChange
BaseCalendars methodApplicationAdded Index and locked
BaselineSave methodApplicationAdded RollupToSummarytasks, RollupFromSubtasks, and SetDefaults
ConsolidateProjects methodApplicationDeleted WriteResPassword, IgnoreReadOnlyRecommended, DatabasePassWord, and FormatID. Changed the order of the last three arguments to openPool, UserID, and Password.
CustomOutlineCodeEdit methodApplicationAdded LookupTableLink, OnlyLeaves, WARP, and RequiredCode.

Note   These new arguments are only available in Microsoft Project Professional.

MailProjectMailCustomizemethodApplicationAdded UseAssignmentField
MailSendProjectMail methodApplicationAdded PublishScope
OptionsCalculation methodApplicationAdded MoveCompleted, AndMoveRemaining, MoveRemaining, AndMoveCompleted, EVMethod, and EVBaseline
OptionsGeneral methodApplicationAdded ShowStartupWorkpane
OptionsWorkgroup methodApplicationAdded PublishInformationOnSave, SetDefaultsMessaging (order changed), SetDefaultsWebServer (order changed), ManagerEmail, ConfirmationDialog, and ChangesMarkAssnDirty
TableEdit methodApplicationAdded HeaderAutoRowHeightAdjustment and HeaderTextWrap
TimescaleEdit methodApplicationAdded TopUnits, TopLabel, TopAlign, TopCount, TopTicks, TopUseFY, HideMajorTier, HideMinorTier, and HideTopTier
UpdateProjectToWeb methodApplicationAdded EmbedProjectFile and OnlyRegisterProject

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

Hidden Properties and Methods
New Objects
New Events, Properties, and Methods

Hidden Properties and Methods

Hidden properties and methods for visible objects are listed in the following table. Most of the hidden properties and methods have been replaced by new functionality in Microsoft Project 2002. These properties and methods are supported only for backward compatibility; for new code, you should use the replacement functionality provided in Microsoft Project 2002.

ObjectHidden property or methodReplacement
ApplicationHelpQuickPreviewNo replacement
ApplicationMailUpdateProjectNo replacement

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

New Objects
New Events, Properties, and Methods
Methods with New, Changed, or Deleted Arguments

New Objects

Objects that have been added to Visual Basic® in Microsoft Project 2002 are listed in the following table.

ObjectDescription
EventInfoProvides cancel information of the event object. Refer to new events for more information.
Filter, FiltersProvides access to filters in Microsoft Project.
Profile, ProfilesProvides access to profiles in Microsoft Project.
Table, TablesProvides access to tables and table formats in Microsoft Project.
TableField, TableFieldsProvides access to table fields and their formatting.
View, ViewsProvides access to views in Microsoft Project.
ViewCombination, ViewsCombinationProvides access to combination views in Microsoft Project.
ViewSingle, ViewsSingleProvides access to single-pane views in Microsoft Project.

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

New Events, Properties, and Methods
Hidden Properties and Methods
Methods with New, Changed, or Deleted Arguments

New Events, Properties, and Methods

Events, properties, and methods that have been added to existing objects, or are associated with objects new to Microsoft Project 2002, are listed in the following table (sorted alphabetically by event, property, or method name).

New Methods

New MethodObjects
Apply methodFilter, Table, View
EnterpriseAllowLocalBaseCalendars methodApplication
EnterpriseCustomizeFields methodApplication
EnterpriseCustomOutlineCodeShare methodApplication
EnterpriseGlobalBackup methodApplication
EnterpriseGlobalCheckOut methodApplication
EnterpriseGlobalRestore methodApplication
EnterpriseMakeServerURLTrusted methodApplication
EnterpriseProjectImportWizard methodApplication
EnterpriseProjectProfiles methodApplication
EnterpriseResourceGet methodApplication
EnterpriseResourcesImport methodApplication
EnterpriseResourcesOpen methodApplication
EnterpriseResourcesSave methodApplication
EnterpriseResSubstitutionWizard methodApplication
EnterpriseTeamBuilder methodApplication
FieldConstantToFieldName methodApplication
FieldNameToFieldConstant methodApplication
FileSaveOffline methodApplication
GetProjectServerSettings methodApplication
GetProjectServerVersion methodApplication
GoalAreaChange methodApplication
GoalAreaHighlight methodApplication
GoalAreaTaskHighlight methodApplication
HelpReference methodApplication
ImportOutlookTasks methodApplication
ImportResourceList methodApplication
IsURLTrusted methodApplication
LoadWebBrowserControl methodApplication
LocaleID methodApplication
MakeServerURLTrusted methodProject
MicrosoftProjectOnTheWeb methodApplication
OpenXML methodApplication
OptionsInterface methodApplication
PublishAllInformation methodApplication
PublishNewAndChangedAssignments methodApplication
PublishProjectPlan methodApplication
RepublishAssignments methodApplication
RequestProgressInformation methodApplication
ResourceActiveDirectory methodApplication
SaveAs methodProject
SearchFiles methodApplication
SetSidepaneStateButton methodApplication
SetTitleRowHeight methodApplication
SidepaneTaskChange methodApplication
SidepaneToggle methodApplication
SpellCheckField methodApplication
StopWebBrowserControlNavigation methodApplication
UnloadWebBrowserControl methodApplication
UpdateFromProjectServer methodApplication
View methodPane
WebBrowserControlFrame methodWindow
WebBrowserControlWindow methodWindow

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

New Objects
Hidden Properties and Methods
Methods with New, Changed, or Deleted Arguments

New Properties

New PropertyObjects
ActiveProfile propertyProfiles
AdjustHeaderRowHeight propertyTable
AlignData propertyTableField
AlignTitle propertyTableField
AndMoveCompleted propertyProject
AndMoveRemaining propertyProject
Assignment propertyGroupCriterion
AutomationSecurity propertyApplication
AutoWrap propertyTableField
BaselinenCost propertyAssignment, Resource, Task
BaselinenDuration propertyTask
BaselinenDurationEstimated propertyTask
BaselinenFinish propertyAssignment, task
BaselinenStart propertyAssignment, task
BaselinenWork propertyAssignment, Resource, task
BaselineSavedDate propertyProject
BottomView propertyViewCombination
Cancel propertyEventInfo
ConnectionState propertyProfile
CPI propertyTask
CVPercent propertyTask
DefaultEarnedValueMethod propertyProject
DefaultProfile propertyProfiles
EAC propertyTask
EarnedValueMethod propertyTask
Edition propertyApplication
Enterprise propertyCalendar, Resource
EnterpriseBaseCalendar propertyResource
EnterpriseCheckedOutBy propertyResource
EnterpriseCostn propertyAssignment, Resource, Task
EnterpriseDaten propertyAssignment, Resource, Task
EnterpriseDurationn propertyAssignment, Resource, Task
EnterpriseFlagn propertyAssignment, Resource, Task
EnterpriseGeneric propertyResource
EnterpriseInactivated propertyResource
EnterpriseIsCheckedOut propertyResource
EnterpriseIsTeamMember propertyResource
EnterpriseLastModifiedDate propertyResource
EnterpriseNameUsed propertyResource
EnterpriseNumbern propertyAssignment, Resource, Task
EnterpriseOutlineCoden propertyResource, Task
EnterpriseProjectCostn propertyTask
EnterpriseProjectDaten propertyTask
EnterpriseProjectDurationn propertyTask
EnterpriseProjectFlagn propertyTask
EnterpriseProjectNumbern propertyTask
EnterpriseProjectOutlineCoden propertyTask
EnterpriseProjectTextn propertyTask
EnterpriseRequiredValues propertyResource
EnterpriseResourceOutlineCoden propertyAssignment
EnterpriseTextn propertyAssignment, Resource, Task
EnterpriseUniqueID propertyResource
Field propertyTableField
Filter propertyViewSingle
FilterType propertyFilter
GlobalBaseCalendars propertyProperty not found
GlobalResourceFilters propertyApplication
GlobalResourceTables propertyApplication
GlobalTaskFilters propertyApplication
GlobalTaskTables propertyApplication
GlobalViews propertyApplication
GlobalViewsCombination propertyApplication
GlobalViewsSingle propertyApplication
GroupAssignments propertyGroup
GroupBySummary propertyResource, Task
HighlightFilter propertyViewSingle
LockFirstColumn propertyTable
LoginType propertyProfile
MoveCompleted propertyProject
MoveRemaining propertyProject
PhysicalPercentComplete propertyTask
Profiles propertyApplication
ProjectGuideContent propertyProject
ProjectGuideFunctionalLayoutPage propertyProject
ProjectGuideSaveBuffer propertyProject
ProjectNamePrefix propertyProject
ProjectServerUsedForTracking propertyProject
PublishInformationOnSave propertyProject
ResourceFilters propertyProject
ResourceTables propertyProject
RowHeight propertyTable
Screen propertyView, ViewSingle
ScreenUpdating propertyApplication
Server propertyProfile
ShowInMenu propertyFilter, Table, View
ShowRelatedSummaryRows propertyFilter
Single propertyView
SPI propertyTask
Status propertyTask
SVPercent propertyTask
Table propertyViewSingle
TableFields propertyTable
TableType propertyTable
TaskFilters propertyProject
TaskOutlineNumber propertyAssignment
TCPI propertyTask
Title propertyTablefield
TopView propertyViewCombination
TrackingMethod propertyProject
UpdateProjOnSave propertyProject
VersionName propertyProject
Views propertyProject
ViewsCombination propertyProject
ViewsSingle propertyProject

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

New Objects
Hidden Properties and Methods
Methods with New, Changed, or Deleted Arguments

New Events

New EventObjects
LoadWebPage eventApplication
ProjectAfterSave eventApplication
ProjectAssignmentNew eventApplication
ProjectBeforeAssignmentChange2 eventApplication
ProjectBeforeAssignmentDelete2 eventApplication
ProjectBeforeAssignmentNew2 eventApplication
ProjectBeforeClearBaseline eventApplication
ProjectBeforeClose2 eventApplication
ProjectBeforePrint2 eventApplication
ProjectBeforeResourceChange2 eventApplication
ProjectBeforeResourceDelete2 eventApplication
ProjectBeforeResourceNew2 eventApplication
ProjectBeforeSave2 eventApplication
ProjectBeforeSaveBaseline eventApplication
ProjectBeforeTaskChange2 eventApplication
ProjectBeforeTaskDelete2 eventApplication
ProjectBeforeTaskNew2 eventApplication
ProjectResourceNew eventApplication
ProjectTaskNew eventApplication
WindowActivate eventApplication
WindowBeforeViewChange eventApplication
WindowDeactivate eventApplication
WindowGoalAreaChange eventApplication
WindowSelectionChange eventApplication
WindowSidepaneDisplayChange eventApplication
WindowSidepaneTaskChange eventApplication
WindowViewChange eventApplication
WorkpaneDisplayChange eventApplication

For more information about the changes to the Microsoft Project 2002 object model, refer to the following topics:

New Objects
Hidden Properties and Methods
Methods with New, Changed, or Deleted Arguments

OLE Programmatic Identifiers

You can use an OLE programmatic identifier (sometimes called a ProgID) to create an Automation object. The following tables list OLE programmatic identifiers for ActiveX® controls, Microsoft® Office applications, and Microsoft Office Web Components:

ActiveX Controls
Microsoft Access
Microsoft Excel
Microsoft Graph
Microsoft Office Web Components
Microsoft Outlook
Microsoft PowerPoint
Microsoft Word

ActiveX Controls

To create the ActiveX controls listed in the following table, use the corresponding OLE programmatic identifier.

To create this controlUse this identifier
CheckBoxForms.CheckBox.1
ComboBoxForms.ComboBox.1
CommandButtonForms.CommandButton.1
FrameForms.Frame.1
ImageForms.Image.1
LabelForms.Label.1
ListBoxForms.ListBox.1
MultiPageForms.MultiPage.1
OptionButtonForms.OptionButton.1
ScrollBarForms.ScrollBar.1
SpinButtonForms.SpinButton.1
TabStripForms.TabStrip.1
TextBoxForms.TextBox.1
ToggleButtonForms.ToggleButton.1

Microsoft Access

To create the Microsoft Access objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Access available on the machine where the macro is running.

To create this objectUse one of these identifiers
ApplicationAccess.Application, Access.Application.10
CurrentDataAccess.CodeData, Access.CurrentData
CurrentProjectAccess.CodeProject, Access.CurrentProject
DefaultWebOptionsAccess.DefaultWebOptions

Microsoft Excel

To create the Microsoft Excel objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Excel available on the machine where the macro is running.

To create this objectUse one of these identifiersComments
ApplicationExcel.Application, Excel.Application.10 
WorkbookExcel.AddIn 
WorkbookExcel.Chart, Excel.Chart.10Returns a workbook containing two worksheets; one for the chart and one for its data. The chart worksheet is the active worksheet.
WorkbookExcel.Sheet, Excel.Sheet.10Returns a workbook with one worksheet.

Microsoft Graph

To create the Microsoft Graph objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Graph available on the machine where the macro is running.

To create this objectUse one of these identifiers
ApplicationMSGraph.Application, MSGraph.Application.10
ChartMSGraph.Chart, MSGraph.Chart.10

Microsoft Office Web Components

To create the Microsoft® Office Web Components objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Microsoft Office Web Components available on the machine where the macro is running.

To create this objectUse one of these identifiers
ChartSpaceOWC.Chart, OWC10.Chart
DataSourceControlOWC.DataSourceControl, OWC10.DataSourceControl
ExpandControlOWC.ExpandControl
PivotTableOWC.PivotTable, OWC10.PivotTable
RecordNavigationControlOWC.RecordNavigationControl, OWC10.RecordNavigationControl
SpreadsheetOWC.Spreadsheet, OWC10.Spreadsheet

Microsoft Outlook

To create the Microsoft Outlook® object given in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Outlook available on the machine where the macro is running.

To create this objectUse one of these identifiers
ApplicationOutlook.Application, Outlook.Application.10

Microsoft PowerPoint

To create the Microsoft PowerPoint® object given in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of PowerPoint available on the machine where the macro is running.

To create this objectUse one of these identifiers
ApplicationPowerPoint.Application, PowerPoint.Application.10

Microsoft Word

To create the Microsoft® Word objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Word available on the machine where the macro is running.

To create this objectUse one of these identifiers
ApplicationWord.Application, Word.Application.10
DocumentWord.Document, Word.Document.10, Word.Template.10
GlobalWord.Global

Additional Information

For more information, please see the Microsoft Project 2002 Object Model.

Show:
© 2014 Microsoft