+ Reply to Thread
Results 1 to 2 of 2

Copy data from pivot table with blank data

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    63

    Copy data from pivot table with blank data

    Hi,
    I want to copy data row from pivot table to another sheet. Sometimes the pivot table has a data and sometimes blank (Dynamic).

    The problem is when the pivot table has no data the macro cannot run, its said: "Run error '1004' the formula is not complete. Make sure an ending square bracket ] is not missing"

    I'm using this macro:

    PHP Code: 
    Sheets("PIVOT Agent Financing").Select
        ActiveSheet
    .PivotTables("PivotTable2").PivotSelect "'Kode Agent'[All]"_
            xlLabelOnly
    True
        Selection
    .Copy
        Sheets
    ("2.SYC FINANCING").Select
        Range
    ("A2").Select
        Selection
    .PasteSpecial Paste:=xlPasteValuesOperation:=xlNoneSkipBlanks _
            
    :=FalseTranspose:=False 
    Please help, Thanks In Advance.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Copy data from pivot table with blank data

    Hi triaji,

    This sounds like you simply need to double click on the cell in the Pivot Table that would create a new sheet showing the data that made up that number. This is called a Drill Down maneuver. Read about it at:

    http://chandoo.org/wp/2010/01/27/pivot-table-tricks/

    If you need VBA then Record a macro when you do the above and see what the VBA says you did.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Replies: 0
    Last Post: 07-12-2013, 03:36 PM
  2. Pivot Table not bringining in blank data
    By SEMMatt in forum Excel General
    Replies: 25
    Last Post: 08-29-2011, 11:12 AM
  3. pivot table counting blank cells in data table
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 09-23-2008, 11:26 AM
  4. Replies: 2
    Last Post: 09-23-2008, 11:01 AM
  5. How can I show all field data in a pivot table, instead of blank
    By Alastair Scott in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 03:05 PM

Tags for this Thread

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