+ Reply to Thread
Results 1 to 4 of 4

VBA code to use same filed on Rows section of pivot table

  1. #1
    Registered User
    Join Date
    08-06-2014
    Location
    Pune, India
    MS-Off Ver
    2010
    Posts
    84

    VBA code to use same filed on Rows section of pivot table

    Hi ,
    I need to use same field twice in rows section.
    Please share vba code for the same.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA code to use same filed on Rows section of pivot table

    Hi,

    You can't do that, either in code or manually. You would have to create a copy of the field in the source data. Why do you need to show the same information twice?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    08-06-2014
    Location
    Pune, India
    MS-Off Ver
    2010
    Posts
    84

    Re: VBA code to use same filed on Rows section of pivot table

    Thanks xlnitwit.

    Yes, right.
    I need to group row feild tiems in several groups.

    Say particular 5 items as one group, another 2 items as one group.
    How can that be done using vba?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: VBA code to use same filed on Rows section of pivot table

    You have to identify the relevant ranges in the row field area and then use the Group method. It's a bit ugly, but there is no other way I know of.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] assistance in round calculated filed in pivot table
    By JEAN1972 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-04-2017, 11:18 AM
  2. Replies: 1
    Last Post: 07-29-2016, 04:30 PM
  3. Replies: 1
    Last Post: 06-16-2013, 07:36 AM
  4. VBA code to Change the Values of Pivot table filed setting from Count to Sum
    By jamilm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2012, 04:25 PM
  5. Excel 2007 : Sum of count filed in Pivot Table
    By janaj in forum Excel General
    Replies: 1
    Last Post: 01-26-2010, 01:41 PM
  6. controling the page filed of a pivot table Programatically
    By Craig_g71 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2008, 11:07 AM
  7. Replies: 2
    Last Post: 11-29-2005, 02:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1