Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.FileBuildID Property (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets the file build identification number (ID) of the specified project. The build ID consists of the version and build of the Project application that created the file. Read-only String.

Syntax

expression. FileBuildID( ** Name, ** UserID, ** DatabasePassWord** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
NameRequiredStringThe name of a project file, source file, or data source.
UserIDOptionalStringA user ID to use when accessing a database. If Name isn't a database, UserID is ignored.
DatabasePassWordOptionalVariantA password to use when accessing a database. If Name isn't a database, DatabasePassWord is ignored.

Remarks

The FileBuildID property can get the file build ID of a project file without actually opening it.

Example

The following example gets the build ID for the Test.mpp project. If the Project build that created the file is 15.0.4027.1000, the FileBuildID value is "15,0,4027,1000".

Sub File_BuildID()
    Dim ProjID As String

    ProjID = Application.FileBuildID("C:\Project\VBA\Samples\Test.mpp")
    Debug.Print ProjID
End Sub
© 2018 Microsoft