ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   97 to 2000 Refresh pivot table (https://www.excelbanter.com/excel-programming/303616-97-2000-refresh-pivot-table.html)

Deeds

97 to 2000 Refresh pivot table
 
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

Debra Dalgleish

97 to 2000 Refresh pivot table
 
Set the command button's TakeFocusOnClick to False, or add the following
line at the beginning of the code:

ActiveCell.Select

Deeds wrote:
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



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com