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
Convert Julian date to standard date through Derived Coulmn in SSIS
looking for unix consultant
How do I handle AutoCAD events by a Delphi program?
Installing Printers Windows 7 - 2003 Domain
AMD Athlon II X4 vs. AMD Phenom II X4
Intellisense-style auto complete in richTextBox c# windows forms control?
Trouble installing Panasonic Printer/Copier devices on SBS 2008
How send an array by url with php???????
text alignment in footer
exchange 2003 how to find out who is sending large emails