+ Reply to Thread
Results 1 to 2 of 2

"Invalid procedure call or argument" error when creating Pivot table

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

    "Invalid procedure call or argument" error when creating Pivot table

    I'm having some trouble creating an excel pivot table using VBA

    This is one of those things where it works most of the time, but once in a while it doesn't and I can't seem to figure out why.

    Excel gives the "Invalid procedure call or argument" error on the bolded line below.

    Please Login or Register  to view this content.
    Thanks for the help.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: "Invalid procedure call or argument" error when creating Pivot table

    Without seeing the code in full it's hard to say but it would perhaps make sense to test for the existence of Statistics sheet in wbTemp in the first instance (ie prior to creating the PT)

+ 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