+ Reply to Thread
Results 1 to 4 of 4

Copy pivot table column based on column name

  1. #1
    Registered User
    Join Date
    04-05-2007
    Location
    Lombard, Illinois
    Posts
    60

    Copy pivot table column based on column name

    Hi all,

    What I would like to do is in a macro copy a column of data from a pivot table in one worksheet to a column in another worksheet. I would like to use the pivot table column name because the actual column ("C", "D" etc) the data is in may change upon refresh of the pivot table. In addition the number of rows in the column variable. Both the column and rows will change based on what is in the data worksheet

    I've attached a sample spreadsheet. In this case I want to copy worksheet "app graph". column "AAWS Succ" and paste it in worksheet "AAWS" column B. Problem is "AAWS Succ" is in column"C" this time, but next time could be in column "D" or column "B".

    Thanks for any help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    1,217

    Re: Copy pivot table column based on column name

    Hi,

    Assuming I am understanding your post correctly, try this:
    Please Login or Register  to view this content.
    Hope it helps,
    berlan

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Copy pivot table column based on column name

    Please Login or Register  to view this content.
    how come?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-05-2007
    Location
    Lombard, Illinois
    Posts
    60

    Re: Copy pivot table column based on column name

    thanks berlan. It's getting late tonight, so I'll try it tomorrow and see if it works. Does the "datarange" only include rows with data?

    Oeldere - I olny included one pivot table sample. There are actually ten different pivot tables, one for each application. Each application has different transaction types and some have mulitple transactions type. Typically I'm pasting one days worth of data and all transactions may not occur every day.

+ 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. Pivot table - sum column based on another column
    By Chemistification in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-26-2014, 06:27 AM
  2. [SOLVED] Marco for pivot table like fuctions. Subtotal column C, based on column B criteria.
    By RobertOHare in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2013, 02:57 PM
  3. copy & paste last column from pivot table to next empty column
    By kitrak2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 06:57 PM
  4. Replies: 1
    Last Post: 04-04-2013, 02:47 PM
  5. copy column from pivot table
    By barkarlo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2008, 05:31 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