+ Reply to Thread
Results 1 to 6 of 6

Refresh Data erases my rows!

  1. #1
    Registered User
    Join Date
    12-08-2006
    Posts
    5

    Refresh Data erases my rows!

    So I built a pivot table and chart based on the following sort of data:

    Please Login or Register  to view this content.
    I actually have every month in my chart. When I try to make a pivot table it shows me the following fields to chose from:
    Salesman
    jan
    feb
    mar
    apr

    Which is odd.... I take it Pivot tables don't like arrays? Anyway, I was able to get it to look like what I wanted by putting "Salesman" in the "Page" field. Then draggin all the months one at a time to row section and setting them to "sum" Then the pivot line chart comes out looking nice. I can switch between salesman in the drop down and see different graphs. The problem is that when I change the data and click "Refresh Data" ALL of the months get removed form the pivot table and chart.

    Is there any way arround this?
    Thanks!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This link might help
    http://www.contextures.com/xlfaqPivot.html#FormatLost

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-08-2006
    Posts
    5
    Thanks, I tried all those suggestions but they didn't help. :-(

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Are you using a dymanic range or reselecting the new data.

    Try making it dymanic to see if that solves the issue

    http://www.contextures.com/xlPivot01.html

    VBA Noob

  5. #5
    Registered User
    Join Date
    12-08-2006
    Posts
    5
    Oh wait, it did work! I had to enable the options you suggested with that link and then re-build the table. Just selecting the options and saving it wasn't enough.

    Sweet, you rock!

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ 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