Pivot Table Macro

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

I think I am getting very lazy. I have been trying to make the Row Field
Ascending with the following generic macro but with no sucess.

ActiveCell.PivotField.AutoSortField xlAscending

What am I doing wrong?

Thank you,

Steven
 
Turn on your macro recorder, double-click on an item on the row element of
your Pivot Table (or whatever you want to sort by), Advanced > Ascending > Ok
Ok. Look at the code and edit as necessary.

I believe that will give you what you want.

Regards,
Ryan---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top