+ Reply to Thread
Results 1 to 2 of 2

Pivot table cycle through and copying to new file and unique file name

  1. #1
    Registered User
    Join Date
    07-22-2019
    Location
    Reading, England
    MS-Off Ver
    2016
    Posts
    4

    Pivot table cycle through and copying to new file and unique file name

    My second VBA question

    I want to do the following:
    Using just one of the filters on a spreadsheet pivot table, cycle through each of the selections and copy and paste it to a new workbook and save each as a CSV with the name of a cell (H1 to be precise).

    I would then have 25 csv file extracts in a set directory and would be very happy!

    Now what I have is the following obtained by cobbling code together from recording basic steps and the internet, I have the following code, but as you can see it doesn't work, and I don't have enough knowledge to problem solve it.


    Thank you in advance



    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 09-26-2019 at 02:52 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Pivot table cycle through and copying to new file and unique file name

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. 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. Copying an excel file with pivot
    By neoxmel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-23-2017, 05:58 AM
  2. copying pivot format to another file
    By Philipsfn in forum Excel Charting & Pivots
    Replies: 36
    Last Post: 11-20-2016, 07:37 AM
  3. Help needed on Copying Data from Pivot to a new XL file.
    By sanc.jobs2012 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2012, 06:24 AM
  4. [SOLVED] Copying Pivot Tables and File Size
    By scottyboy218 in forum Excel General
    Replies: 1
    Last Post: 05-02-2012, 02:14 PM
  5. Need Help in copying a Table from Word file to Excel
    By sure2005 in forum Excel General
    Replies: 1
    Last Post: 10-19-2010, 03:23 PM
  6. [SOLVED] Create Pivot Table: Cannot Open Pivot Table Source File
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-05-2010, 05:11 AM

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