Belešku
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili da promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Saves a Visual Reports database to the default directory or to a specified directory.
Syntax
expression. VisualReportsSaveDatabase( _strNamePath_, _PjVisualReportsDataLevel_ )
expression A variable that represents an Application object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| strNamePath | Optional | String | Name and full path of the location to which to save the database file (.mbd). |
| PjVisualReportsDataLevel | Optional | Long | Save data level. Can be one of the PjVisualReportsDataLevel constants. Default is pjLevelAutomatic. |
Return value
Boolean
Remarks
The PjVisualReportsDataLevel parameter specifies the level to which the timephased data can be accessed. For example, if pjLevelMonths (months) is specified, it not possible to access pjLevelDays (days).
Example
Following is an example of using The VisualReportsSaveDatabase method.
Sub a()
Dim tf As Boolean
tf = Application.VisualReportsSaveDatabase("C:\mydb.mdb", pjLevelAutomatic)
If tf = True Then
MsgBox ("Database saved successfully")
Else
MsgBox ("Database wasn't saved successfully")
End If
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.