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

Hi
I have a pivot table and need to know which code should I write in order to
change a RowField by another on the database but, whithout knowing the
existing selected rowfield

Regards
Pedro


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Pivot Table issue

Tom are you able to help me on this?

Regards

Pedro

"Pedro" wrote in message
...
Hi
I have a pivot table and need to know which code should I write in order

to
change a RowField by another on the database but, whithout knowing the
existing selected rowfield

Regards
Pedro




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

I'm not sure what you mean? Can you be more specific or provide an
example of what you want to do?

Mark

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Pivot Table issue

I have in the Row Field "Segment Name" I want to write a code in order to
replace the field by "Currency" but whithout taking into account the name of
the existing. Next time I might have another field name and replace by
Currency


"Mark Bigelow" wrote in message
...
I'm not sure what you mean? Can you be more specific or provide an
example of what you want to do?

Mark

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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

This should do it:

' This variable tells which position the field is in
' First position is 0
intFieldPos = 0
ActiveSheet.PivotTables("PivotTable1").PivotFields (intFieldPos).Orientat
ion = _
xlHidden
With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Currency")
.Orientation = xlRowField
.Position = intFieldPos
End With

Let me know if this doesn't work.

Mark

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Issue with pivot table varsha12 Excel Discussion (Misc queries) 1 April 16th 10 02:51 PM
One pivot table cannot overlap another pivot issue. Avi Excel Discussion (Misc queries) 1 October 5th 09 02:29 PM
Pivot Table Issue PiB311 Excel Worksheet Functions 2 September 14th 09 08:59 PM
Pivot table sum issue Phil Smith Excel Discussion (Misc queries) 5 May 15th 08 03:18 AM
Pivot Table Issue Titanium Excel Worksheet Functions 2 June 17th 07 08:51 PM


All times are GMT +1. The time now is 07:47 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"