Need help with a PivotTable Macro
Posted by Ed on February 14, 2002 2:59 PM
I have a macro that imports CSV data into a workbook then cuts and paste the data to separate worksheets based on changing dates in column b, all of this works (thanks to Barrie Davidson's help), each sheet always contain the same number of columns and column headings, but the number of rows varies from sheet to sheet. I would like to add additional logic to the macro that would generate, on each sheet, a PivotTable. I can record the pivottable macro and incorporate it into the existing macro, but I am not able to figure out how to edit the code so that it will dynamically generate a pivottable on each sheet in the workbook, with number of rows varying from sheet to sheet. Any help would be appreciated.