+ Reply to Thread
Results 1 to 4 of 4

Assigning named Range as Pivot Table Source Data using Macro

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    5

    Assigning named Range as Pivot Table Source Data using Macro

    Hi All,

    Can someone help me with my simple macro?

    I have tabs named "IM" and and "IMAnalysis". I'd like to select all data in "IM" tab and use it as source data in a pivot table and put it in "IMAnalysis" tab. I am a beginner and what I actually did was to record the macro and edit the code afterwards.

    Here's the code that I used:

    Please Login or Register  to view this content.
    It fails and the error message is: Reference is not valid.

    Appreciate your help.

    Thanks!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Assigning named Range as Pivot Table Source Data using Macro

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

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Assigning named Range as Pivot Table Source Data using Macro

    Hi JP,

    Thanks for the very quick response. It is now working!

    Appreciate your help on this!
    Last edited by Melovalicious; 10-26-2012 at 05:36 AM.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Assigning named Range as Pivot Table Source Data using Macro

    you're welcome :-)

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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