+ Reply to Thread
Results 1 to 1 of 1

Pivot table macro issues

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    Winnipeg, Manitoba, Canada
    MS-Off Ver
    Excel 2003
    Posts
    90

    Pivot table macro issues

    Hello,

    I have recorded a macro that will create a pivot table however it always fails when I try to use it. I get the following error

    Run Time Error '1004'
    Unable to get the Pivotfields properties of the PivotTable Class

    Background

    The excel spreadsheet is created from a php script that runs a sql query and dumps the query data into excel so that user can can download the excel file.

    Once the excel has been downloaded by the user, they can open it and click/hit CTRL+W to create a new worksheet ( This part works )

    Here is the code for the new worksheet macro

    Please Login or Register  to view this content.
    Here is a code for the Pivot Tabel macro

    Please Login or Register  to view this content.

    Other things to note .....

    The sql query results will vary from month to month ......meaning some months will have more rows of data then others.

    I'm new to macros and any assistance is appreciated .....

    Thank you in advance

    Arvin
    Last edited by arvin; 08-19-2009 at 02:32 PM. Reason: fixed typos

+ 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