Application.FileBuildID Property

Project Developer Reference

Returns the file build ID of the specified project. The build ID consists of the version and build of the project 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.

Return Value
String

Remarks

The FileBuildID property can return 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.

Visual Basic for Applications
  Sub File_BuildID()
Dim ProjID As String

ProjID = Application.FileBuildID("Test.mpp", "someUserID ", "someDB")

End Sub

See Also