Hi
I have a couple of pieces of code from other macros and I want to combine them to make one piece of code if possible.
I want to create a pivot table in a new worksheet using the data in the Sheet Report1.
The data starts in A2 and goes across to Q2 and the end of the data varies.
I have this which will count the rows in column A.
I have then amended that to take off the header and sum columns.![]()
Please Login or Register to view this content.
Then I have this to select the range.![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
I want to put this in here but don't know how to.
![]()
Please Login or Register to view this content.
Basically getting rid of the hard coding of the range in the pivot table part.
Any help much appreciated.
Bookmarks