+ Reply to Thread
Results 1 to 2 of 2

subscript out of range error

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Philadelphia
    MS-Off Ver
    Excel 2003
    Posts
    3

    subscript out of range error

    I am trying to refresh a pivot table on a separate workbook using vba.
    Here is the code:
    Please Login or Register  to view this content.
    I get the error about being out of range on the 'Set' line of code.

    Why?

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,007

    Re: subscript out of range error

    The workbook name is wrong, or the sheet name is, or the pivot table name is.
    Everyone who confuses correlation and causation ends up dead.

+ 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