pivot tables

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Pivot Tables

Pivot Tables

resolvedResolved · Low Priority · Version 2003

Kayleigh has attended:
Excel VBA Intro Intermediate course

Pivot Tables

Is it possible to stop a pivot table re-formatting each time it is refreshed?

Thanks,
Kayleigh

RE: Pivot Tables

Hi Kayleigh

Thank you for your question

I would suggest writing the code that formats your pivot table in a separate procedure. You can then call this after the pivot table is created. You could also then call it after your pivot table is refreshed and this would add back in any missing formats.

The following code will refresh an existing pivot table

ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh


regards

Stephen

Mon 1 Jun 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Create your own custom list on Excel 2010!

If you know how to use the auto-fill option on Excel then why not create your own customs lists?

The auto fill feature saves you time by allowing you to enter one of the list entries into a cell and then use your mouse to automatically drag the rest of the list into the cells below, above or to either side of the initial cell. When using your mouse to perform this task you will see a thin black cross appear at the bottom right hand side of the cell. Click, hold and drag to make the list appear.

Default lists include weekdays and months. To create your own list in Excel 2010 do the following;

>File
>Options
>Advanced
>Scroll right to the bottom of the page and you will see a buttom "edit custom lists", click this button
>enter your list in the list entries
>click add

Now try it out. Good luck.
>

View all Excel hints and tips


Server loaded in 0.06 secs.