>>I have managed to create a class that will allow me to instatiate Excel, add workbooks and sheet, populate the sheets, and format the data. Now I have been asked to generate a pivot table out of a VFP app. Is there a kind soul out there who would be willing to share Pivot Table code with me? >> >>Thank you. >> >>Todd Cottengim >>Alpine Land Information Services >>tcottengim@alpine-lis.com > >Can't you use the Pivot Table Wizard? It's re-distributable.