Focal Point
[SOLVED by case] strange behaviour with excel template pivot table and IE 7

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/573100663

February 09, 2010, 12:53 PM
jodye
[SOLVED by case] strange behaviour with excel template pivot table and IE 7
Hi Everyone

I have a report that outputs to an excel template. Inside the excel template there is a macro that is fired on Workbook_Open. This macro takes the raw data from the extract and creates a pivot table on a separate sheet in the file.

As you know, when a report outputs to excel, the user gets the option to save or run the file.

In Firefox everything works perfectly.

In IE (ver 7), if I save the file locally and then open the file, it works perfectly.

However with IE, if I select "open" from the IE dialogue box (so it is not explicitly saved locally before opening it), then the macro fails.
The raw data is present, but the pivot table is not created.

Debugging has revealed that it is this line that is crashing....

  
Set pt = PTCache.CreatePivotTable(TableDestination:=PTOutput.Cells(1, 1), _
TableName:="SamplePivot")


it gives this error... "run time error 5... invalid procedure call or argument".

In addition, if I manually try to create a pivot table outside of the VBA code using the Pivot Table wizard, that does not work either. There is no error message, but nothing happens. The pivot table is never created. This is not a VBA bug of any kind.

Anybody see this before? It is not a huge problem since we always tell people to save the file before opening it anyway, but I would like to know what is going on.

Thanks

Jodye

This message has been edited. Last edited by: Kerry,


WF 8.0.0.5M
February 16, 2010, 02:28 PM
Kerry
Hi All,

FYI, Jodye has a case opened regarding this issue, and additional research seems to indicate that this is more a Microsoft issue.

Please check the following:

http://support.microsoft.com/d...scid=kb;en-us;211912
http://support.microsoft.com/d...scid=kb;en-us;831929

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.