Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
uclawarren
 
Posts: n/a
Default Pivot Table VBA code to move a row


I have a pivot table, and within the row field, I would be able to write
a macro to move a certain row to the bottom, regardless of the number of
rows. Currently, if I move the row to the bottom while recording the
macro, it will list the position number, such as

ActiveSheet.PivotTables("PivotTable2").PivotFields ("Carrier").PivotItems(
_
"Other").Position = 8

I found that I will not get the result I want unless there are exactly
8 items in the row section. Does anyone know if there is a way to make
sure that it moves to the "Last" position?

Thanks


--
uclawarren
------------------------------------------------------------------------
uclawarren's Profile: http://www.excelforum.com/member.php...o&userid=27979
View this thread: http://www.excelforum.com/showthread...hreadid=474863

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
updating pivot table to include additional rows Ellen Excel Discussion (Misc queries) 8 July 15th 08 01:33 PM
Sheet protection code conflicts with Pivot Table "auto refresh" KG Excel Discussion (Misc queries) 6 December 21st 05 11:16 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM
How to get pivot table Time field to appear correctly wccmgr Excel Worksheet Functions 1 August 23rd 05 12:26 AM
Pivot table keeps dupping to another linked pivot table Angus Excel Discussion (Misc queries) 0 August 8th 05 07:48 AM


All times are GMT +1. The time now is 12:12 AM.

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

About Us

"It's about Microsoft Excel"