+ Reply to Thread
Results 1 to 6 of 6

Strange error

  1. #1
    Registered User
    Join Date
    12-18-2006
    Posts
    46

    Strange error

    I have one sheet which acts like a database, and another where I have a PivotTable made from that database. Some VBA is there to refresh the table and what-not.

    When I exit Excel I get

    'no item of that name exists in pivot table report. rename 'my label' to '1'

    error. I don't access it via VBA, and I cannot figure out why this happens. Any ideas?

  2. #2
    Registered User
    Join Date
    12-18-2006
    Posts
    46
    Found the reason!

    In my before close event, when I reset some variables to zeros, even though i activate the correspoding sheet, Excel updates the sheet with pivot table too. I don't see why though, but when I remove this line everything works just fine.

    Cheers.

  3. #3
    Registered User
    Join Date
    12-18-2006
    Posts
    46
    Will use this thread for another matter.

    I can't figure out why pivot table formats some rows in a different way, as shown in the picture. All the data has been entered the same way, through the same user form.

    Ideas?
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    that is strange but the pivot table sheet retains formating so if somehow the cells had been left aligned at some point in the pivot table, that would be retained, even if it was refreshed. Also the macro code made do something strange!

    regards

    Dav

  5. #5
    Registered User
    Join Date
    12-18-2006
    Posts
    46
    But the same thing ocurrs when I turn Preserve formatting off! Further more, I've tried to delete the whole sheet with the Pivot report, and create a new one (with the same name, though), and nothing changes.

    Could it be that Excel remembers Pivot table's name for formatting (and other) purposes?

    Cheers,
    Ivan.

  6. #6
    Registered User
    Join Date
    12-18-2006
    Posts
    46
    Reason behind this proved to be fairly simple.

    Pivot table aligned numbers to the right, no matter if I 'manually' aligned cell ot the whole column to the center. And that's basically it. It does NOT allow me any other alingment, but right. I could change the format type from number to text though, and it would fix the problem.

+ 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