Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for a Macro that allows a Pivot table to be repeatedly run (fora dynamic rows in a table, but static field names) Mike C[_5_] Excel Programming 1 February 11th 08 04:30 AM
Pivot Table from Macro Dave Excel Discussion (Misc queries) 2 November 15th 07 05:00 PM
Is it possible to Macro a Pivot Table? jeannie v Excel Worksheet Functions 2 July 22nd 07 01:56 AM
Macro for Pivot Table Vicki Excel Programming 3 May 16th 06 06:42 PM
Steps from Macro recorder for Pivot table will not run as a Macro Nancy[_5_] Excel Programming 0 April 2nd 04 10:33 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"