ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   activate pivot tables from a userform (https://www.excelbanter.com/excel-programming/436700-activate-pivot-tables-userform.html)

Roger on Excel

activate pivot tables from a userform
 
How does one activate a pivot table refresh from a userform ?

I tried to use this code in the command button without success:

ActiveSheet.PivotTables("StoichiometrySt1").Refres hTable

I think the code doesnt work because the userform is activated in another
sheet

Also, is there a way to suppress the warning dialog asking if you want to
replace the cells when you refresh the pivot table

Can anyone help with either of these questions?


All times are GMT +1. The time now is 11:48 AM.

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