+ Reply to Thread
Results 1 to 5 of 5

Application defined or object defined error when creating a Pivot Table

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Application defined or object defined error when creating a Pivot Table

    I keep running into this error when I try to create a pivot table.

    The debugger highlights the following line:
    Please Login or Register  to view this content.
    I noticed that when I delete the old pivot table that its supposed to replace, it will work, but otherwise it gives me the error.

    The strange thing is that I don't seem to get this error the other places that I've done this. Replacing the old pivot table. I can't just make it update the table because sometimes, the table doesn't exist yet, which is why I create one.

    Please let me know what the problem could be.

    Thanks
    Last edited by Kaigi; 10-02-2009 at 05:06 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Application defined or object defined error when creating a Pivot Table

    Hi Kaiga
    If you run the sub twice you will find the pivot tables have the same name
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Re: Application defined or object defined error when creating a Pivot Table

    So in that case, I should check to see if an object exists with that name, and if it does then I'll update the information in the table instead? How do I do that?

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Application defined or object defined error when creating a Pivot Table

    Kaigi
    Incorporate some code like this code
    Please Login or Register  to view this content.
    hope it helps

  5. #5
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Re: Application defined or object defined error when creating a Pivot Table

    Ok thanks

+ 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