ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Table Macro (https://www.excelbanter.com/excel-programming/406366-pivot-table-macro.html)

steven

Pivot Table Macro
 
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

ryguy7272

Pivot Table Macro
 
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---


--
RyGuy


"Steven" wrote:

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



All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com