![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 23
|
Hi all,
How can i run a macro which refreshes a pivot table in a hidden worksheet? Also, how do i hide a sheet? Any related codings r appreciated. Thanks. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Kobe, Japan
Posts: 1,420
|
Hi, Here is a smple. Please try this.
Sheets("Pvt").Visible = False You will need to modify the PivotTablest name. ' refreshes a pivot table in a hidden worksheet Sheets("Pvt").PivotTables("pvt1").RefreshTable Also you will need to modify the sheet name. 'How to hide a sheet Sheets("Pvt").Visible = False |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 23
|
thanks! Colo.
it's working fine. nc |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|