View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Angus Angus is offline
external usenet poster
 
Posts: 81
Default Omit page with no data when use "show page"

I have a VBA to "show page" by user email at a pivot table. However, some of
them are "empty" and without data, how to omit/ delete those worksheets
without data?

Sheets("AllData").Select
ActiveSheet.PivotTables("PivotTable1").ShowPages PageField:="User email"