Microsoft
Software
Hardware
Network
Question : Pivot Tabel Refresh
I am using Excel 2007. I have a Pivot Table that is getting External data from SQL Server via Microsoft Query. This uses a named connection and that connection has properties, including a Command Text Property. This contains the query string that pulling data in pivot table.
What I need is how to refresh my pivot table on file open. Or whenever I open the file I want up-to-date data to be pulled from SQL Server in my pivot table.
Answer : Pivot Tabel Refresh
Put the line below in the Workbook open event, where "Sheet1" is the name of the worksheet containing your PivotTable.
Private Sub Workbook_Open()
Me.Worksheets("Sheet1").Pi
votTables(
1).PivotCa
che.Refres
h
End Sub
Random Solutions
How to get an USB speaker to work with Eee PC 900 Xandros Linux
Script to automatically delete files older than 1 month Windows NT server
The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action
Copyright check of the website
Can't access Exchange 2003 OWA from Internet
Websense - Block Internet Access - Except for Updates
Allowing port 1935 streaming media traffic
How to find out what version of remote OpenSSL server is running?
Hyper V Server & Network Requirements
How to use the processing core library to create a PIMAGE in Java Netbeans?