+ Reply to Thread
Results 1 to 5 of 5

Pivot Table Runtime error 1004

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Pivot Table Runtime error 1004

    Hello all,

    i'm hoping someone could help me with an issue i'm having creating pivot tables. i'm am getting a runtime error 1004 on the below line. I've posted the rest of the code below for reference. any help would be much appreciated.

    Thanks,

    Chris

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot Table Runtime error 1004

    Are you able to upload the workbook so that we may see in context?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Pivot Table Runtime error 1004

    PT does not work well with range. Change the range in to a string.

    Please Login or Register  to view this content.
    I also assumed that you have a code sheet name called SheetNum.

  4. #4
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Re: Pivot Table Runtime error 1004

    unfortunately not, there is a lot of confidential info and data in it, i'll see if i can strip out the confidential data and make a basic file with just the relevant code

  5. #5
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Re: Pivot Table Runtime error 1004

    unfortunately not, there is a lot of confidential info and data in it, i'll see if i can strip out the confidential data and make a basic file with just the relevant code

+ 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. Runtime Error '1004': Method 'Pivot Tables' of object '_Worksheet' Failed
    By ZuneidDassu in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-07-2014, 06:21 AM
  2. [SOLVED] Runtime error 1004 when creating/formatting a table with VBA
    By BROnstott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2013, 05:42 PM
  3. Replies: 0
    Last Post: 05-09-2012, 03:59 PM
  4. Excel 2007 pivot table/macro/Runtime error 1004
    By abalserv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2010, 06:36 AM
  5. Pivot Table runtime 1004 Error for certain users
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2010, 05:11 PM
  6. Pivot table giving 'runtime error 1004'
    By wantucce in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-21-2007, 01:47 PM
  7. pivot table Commandtext causes runtime error 1004 in excel 2000
    By Therezee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2006, 11:45 PM

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