pyromaniac
Programmer
I need to create a pivot table of the average mileage that an employee has travelled, the problem is the size of the data block varies, from month to month eg.january is 25 cells with data in from column 'A' to 'L', and february is 100 cells down with data in from column 'A' to 'L'. How can i write a macro that selects only the required data, so as it can be put into a pivot table?