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

pivot table macros

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Pivot table macros

Pivot table macros

ResolvedVersion 2010

James has attended:
Excel VBA Introduction course

Pivot table macros

How do I get a pivot table macro to work? I get constant bugs, are their any materials you can point me towards?

RE: pivot table macros

Hi James,

Thank you for the forum question.

PivotTables are very useful tools.

I have had bugs in my codes too working with PivotTables. I would like to help you, but I would like to know a little bit more about the bugs you are dealing with.

If you have a PivotTable macro which create a PivotTable Excel will name the PivotTable and then you will not be able to create another PivotTable in the same workbook without deleting the first one. If this is the issue you can generate a PivotTable name automatically for each time you run the code.

I do not know if this is the issue but please tell me which problems you have.


We are creating PivotTable code on our Excel Advanced VBA course.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 1 Jun 2016: Automatically marked as resolved.

Excel tip:

Select only cell that contain text to lock format

For selecting cells that only contain Text in Excel

By selecting cells that only contain text, you can delete, fill or protect cells of this type.

Use short cut to Go to box (F5) or Edit, Go to
In the dialog box, click special button & select Constants and only check text or any other desired type.

Click OK.

And text cells will all be highlighted for you to apply format. Please note only works on one sheet at a time.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.