+ Reply to Thread
Results 1 to 3 of 3

Pivot Table Script Problem

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Pivot Table Script Problem

    Hi,
    I have used this script in the past with several worksheets and had no problems. I recently made some major changes to the worksheet I am now trying to run this on and now I have problems.

    I first thought that all the code in the new sheet was causing a conflict so I thought I would try to remove all the code then try this script. However no luck...

    I keep getting an error when trying to create the pivot table
    Please Login or Register  to view this content.
    I have attached the sheet I am running this script on to help whomever can help figure out what is wrong.

    Thank You, Mike

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by realniceguy5000; 05-20-2009 at 10:32 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Pivot Table Script Problem

    It's probably due to the fact that the sheet being processed is not the one you think it is.

    You loop through the sheets. First up is the Hidden LA sheet.
    Change you code to use the "LA-05-01-09" worksheet only as the source of the pivot table.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Pivot Table Script Problem

    Quote Originally Posted by Andy Pope View Post
    It's probably due to the fact that the sheet being processed is not the one you think it is.

    You loop through the sheets. First up is the Hidden LA sheet.
    Change you code to use the "LA-05-01-09" worksheet only as the source of the pivot table.
    You are correct. I completely forgot about the very hidden sheet. I cant really change the code to only look at this sheet because I have one for every week of the year. However you put me on the right path.

    Once I deleted that LA Sheet and added a space in the Name field the pivot table was created correctly.

    Thanks So Much for the help!!!
    Mike....

+ 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