Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Pivot Tables from Access

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
What is the syntax to refresh an excel pivot table from an Access moduel?

Thanks.

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Lonnie,

I would NOT do the refresh from Access.

I would set the RefreshOnFileOpen property of the PivotCache in Excel.
Code:
ActiveWorkbook.PivotCaches(1).RefreshOnFileOpen = True
Then, whenever the workbook is opened, the PivotTable will update.

If the workbook will be open while Access is updating the table then set the RefreshPeriod property for the pivotcache to an appropriate interval.

:)

Skip,
Skip@TheOfficeExperts.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top