97 to 2000 Refresh pivot table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote code for a button that refreshes a pivottable on click. When I try to click the button using 97 I get a Run Time Error. Can someone please tell me how to use the Activesheet.RefreshPivotTable code so that it works in both 2000 & 97
Thanks
 
Set the command button's TakeFocusOnClick to False, or add the following
line at the beginning of the code:

ActiveCell.Select
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top