Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Saves the PivotTable cache source as a Microsoft Office Data Connection file.
Syntax
expression.SaveAsODC (ODCFileName, Description, Keywords)
expression A variable that represents a PivotCache object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| ODCFileName | Required | String | Location to save the file. |
| Description | Optional | Variant | Description that will be saved in the file. |
| Keywords | Optional | Variant | Space-separated keywords that can be used to search for this file. |
Example
The following example saves the cache source as an ODC file titled ODCFile. This example assumes that a PivotTable cache exists on the active worksheet.
Sub UseSaveAsODC()
Application.ActiveWorkbook.PivotCaches.Item(1).SaveAsODC ("ODCFile")
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.