Results 1 to 4 of 4

Export pivot table and values to new workbook.

Threaded View

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Export pivot table and values to new workbook.

    Hello,

    I have a series of pivot tables in a workbook that all like to a very large data sheet that is formula driven in this file. There are other users that require use of the tables and part of the data, but not the whole file. I am trying to find a way that I can export the pivot tables and the data source (converting it to values instead of the formulas) quickly into a new workbook after each refresh.

    I am currently using the vba code to transfer the data table:

    Set newwb =workbooks.add
    For i = 15 to 16
    ThisWorkbook.Activate
    Sheets(i).Copy after:=newwb.Sheets(1)
    Range("A1", Cells.SpecialCells(xlCellTypeLastCell)).Value = Range("A1", Cells.SpecialCells(xlCellTypeLastCell)).Value
    next i
    However, it does not transfer as values, all the formulas stay in place, and it is driving the size of my file quite high.

    Any assitance that could be provided would be very helpful.
    Last edited by Tobre; 01-11-2011 at 02:42 PM.

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