activate pivot tables from a userform

R

Roger on Excel

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").RefreshTable

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?
 

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

Top