View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Roger on Excel Roger on Excel is offline
external usenet poster
 
Posts: 249
Default 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?