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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA code to run a showcase query

Status
Not open for further replies.

emre2548

MIS
Jun 5, 2003
1
US
Here is what I wanna do;
I want to click on a command button on excel spreadsheet and it will run a showcase query and update the related pivot reports and charts in that workbook? I want to write a code behind the command button. Any help appreciated?
 
Dunno anything about "showcase" but to refresh all pivottables in a workbook, use

for each ws in thisworkbook.worksheets
for each pt in ws.pivottables
pt.refreshtable
next
next

Rgds
Geoff
Si hoc legere scis, nimis eruditionis habes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top