Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Pivot Table PageField

Hey guys

I have a pivot table with 3 fields in the PageField. I
would like to just rearrange the position of the fields.
For instance Currently from top to bottom in the pagefield
I have field "AD", then "Supervisor", and
last "Department". I would simply like to alter their
position and put "Department" at the top, then "AD", and
last "Supervisor"

How do I do this?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Pivot Table PageField

If you mean by code, try recording a macro. That will give you the idea on
how to do that...

--
Regards,

Juan Pablo González

"Todd Huttenstine" wrote in message
...
Hey guys

I have a pivot table with 3 fields in the PageField. I
would like to just rearrange the position of the fields.
For instance Currently from top to bottom in the pagefield
I have field "AD", then "Supervisor", and
last "Department". I would simply like to alter their
position and put "Department" at the top, then "AD", and
last "Supervisor"

How do I do this?

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Pivot Table PageField

I did run a macro. The macros only show adding a field to
the pagefield. When I run a macro and rearrange the
fields, it does not show that.


-----Original Message-----
If you mean by code, try recording a macro. That will

give you the idea on
how to do that...

--
Regards,

Juan Pablo González

"Todd Huttenstine"

wrote in message
...
Hey guys

I have a pivot table with 3 fields in the PageField. I
would like to just rearrange the position of the fields.
For instance Currently from top to bottom in the

pagefield
I have field "AD", then "Supervisor", and
last "Department". I would simply like to alter their
position and put "Department" at the top, then "AD", and
last "Supervisor"

How do I do this?

Thank you.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Pivot Table PageField

Ok, try something like this then...

Sub Macro2()
With ActiveSheet.PivotTables("PivotTable1")
With .PivotFields("Field1")
.Orientation = xlColumnField
.Position = 1
End With

With .PivotFields("Field2")
.Orientation = xlRowField
.Position = 1
End With

With .PivotFields("Field3")
.Orientation = xlPageField
.Position = 1
End With
End With
End Sub


--
Regards,

Juan Pablo González

"Todd Htutenstine" wrote in message
...
I did run a macro. The macros only show adding a field to
the pagefield. When I run a macro and rearrange the
fields, it does not show that.


-----Original Message-----
If you mean by code, try recording a macro. That will

give you the idea on
how to do that...

--
Regards,

Juan Pablo González

"Todd Huttenstine"

wrote in message
...
Hey guys

I have a pivot table with 3 fields in the PageField. I
would like to just rearrange the position of the fields.
For instance Currently from top to bottom in the

pagefield
I have field "AD", then "Supervisor", and
last "Department". I would simply like to alter their
position and put "Department" at the top, then "AD", and
last "Supervisor"

How do I do this?

Thank you.



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Pivot Table PageField

Thanks that worked.


-----Original Message-----
Ok, try something like this then...

Sub Macro2()
With ActiveSheet.PivotTables("PivotTable1")
With .PivotFields("Field1")
.Orientation = xlColumnField
.Position = 1
End With

With .PivotFields("Field2")
.Orientation = xlRowField
.Position = 1
End With

With .PivotFields("Field3")
.Orientation = xlPageField
.Position = 1
End With
End With
End Sub


--
Regards,

Juan Pablo González

"Todd Htutenstine"

wrote in message
...
I did run a macro. The macros only show adding a field to
the pagefield. When I run a macro and rearrange the
fields, it does not show that.


-----Original Message-----
If you mean by code, try recording a macro. That will

give you the idea on
how to do that...

--
Regards,

Juan Pablo González

"Todd Huttenstine"

wrote in message
...
Hey guys

I have a pivot table with 3 fields in the PageField. I
would like to just rearrange the position of the

fields.
For instance Currently from top to bottom in the

pagefield
I have field "AD", then "Supervisor", and
last "Department". I would simply like to alter their
position and put "Department" at the top, then "AD",

and
last "Supervisor"

How do I do this?

Thank you.



.



.



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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Modify a calculated field formula depending upon selection of pagefield Tewari Excel Discussion (Misc queries) 0 April 10th 07 01:35 PM
Finding the name of the pagefield clicked Tama Excel Programming 0 December 23rd 03 04:23 AM
How to find the current pagefield of a pivot table? Tama Excel Programming 0 December 22nd 03 05:00 AM
Members in a PageField Rickard Excel Programming 1 October 14th 03 03:08 PM


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

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"