Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 97 and Excel 2000 compatibility problem

Status
Not open for further replies.

shep6

Programmer
May 4, 2001
38
GB
I have recorded a macro in Excel 2000 which creates a pivot table, this runs fine in Excel 2000, but when I run it in Excel 97 I receive the error message "Object doesn't support this method" on the following line:

ActiveWorkbook.PivotCaches.Add(SourceType:=xlDatabase, SourceData:= _
"'Boots Query 1'!R1C1:R90C7").CreatePivotTable TableDestination:="", _
TableName:="PivotTable1"

I guessing it's because 97 doesn't support the Add method. Does anyone know the code I need to use to make it work in Excel 97.

thanks
 
This was answered in the VBA forum by Store300.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top