Application.FileBuildID property (Project)
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
Name | Required/Optional | Data type | Description |
---|---|---|---|
Name | Required | String | The name of a project file, source file, or data source. |
UserID | Optional | String | A user ID to use when accessing a database. If Name isn't a database, UserID is ignored. |
DatabasePassWord | Optional | Variant | A 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
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.