+ Reply to Thread
Results 1 to 3 of 3

Pivot Table - selection as source

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    63

    Pivot Table - selection as source

    Hi all,
    I wrote a simple macro for creating multiple pivot tables in Excel 2003. When I run it on an older machine with Excel 2002 I get a Runtime error 1004 because of this dynamic reference, although data has been selected.

    Please Login or Register  to view this content.
    Now if I replace SourceData = Selection with the static "'Sheet1'!R1C1:R51C4" it works. Anyone know how I can avoid this issue and still use a dynamic selection for my pivot tables?

    Thanks
    Nick

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pivot Table - selection as source

    Why is there an ellipsis after Selection?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Pivot Table - selection as source

    Quote Originally Posted by romperstomper View Post
    Why is there an ellipsis after Selection?
    Because it doesn't work otherwise. Especially since I add a destination, name and default version after that.

    Please Login or Register  to view this content.

    Disregard the equations, they are just a simple way of shifting tables.

    ------

    Problem solved - adding .Address after Selection fixed things.
    Last edited by Newbie_Nick; 10-19-2010 at 11:02 AM. Reason: Problem Solved

+ 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