+ Reply to Thread
Results 1 to 5 of 5

copy pivot table to new workbook/worksheet

Hybrid View

Brontosaurus copy pivot table to new... 04-28-2011, 06:37 AM
realniceguy5000 Re: copy pivot table to new... 04-28-2011, 08:53 AM
Brontosaurus Re: copy pivot table to new... 04-28-2011, 11:58 AM
kahook1 Re: copy pivot table to new... 04-28-2011, 09:55 PM
T-J Re: copy pivot table to new... 04-29-2011, 06:41 AM
  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: copy pivot table to new workbook/worksheet

    Hi,

    Maybe you need to Select or Activate the sheet that has the pivot table on it? I'm looking at your code and it appears that it creates a new workbook, then adds "New Report" to cell A1 on worksheet(1), However once that is completed you are asking the script to copy from the "Activesheet"
    ActiveSheet.PivotTables("PivotTable2").Copy
    Just a thought, Mike

  2. #2
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    Re: copy pivot table to new workbook/worksheet

    Hi Mike,

    As you may have guessed I've pieced this code together from more than one source as I'm not that familiar with VBA yet.

    Please would you suggest modified coding that I could try?

    Thanks,

    Louise

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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