I've created a macro, and it does the business for me. However, the is a line in the macro which pre-selects the cells. The snag is, I want to use the macro with other sheets, and the cells I would want to select would be different in each case.
As it stands, my code reads:
SourceData:= Array("Sheet1!R1C1:R27C16")).CreatePivotTable TableDestination:=""
At the moment, I have to edit the R27C16 bit to reflect the location of the last cell.
How do I get the macro to prompt the user to select the cells, or altenatively select all the cells from R1C1 ( or A1) to the last cell i.e. the lowest row, and the rightmost column?
There must be a guru out there who can help me out!!
Thanks in advance
Warren
As it stands, my code reads:
SourceData:= Array("Sheet1!R1C1:R27C16")).CreatePivotTable TableDestination:=""
At the moment, I have to edit the R27C16 bit to reflect the location of the last cell.
How do I get the macro to prompt the user to select the cells, or altenatively select all the cells from R1C1 ( or A1) to the last cell i.e. the lowest row, and the rightmost column?
There must be a guru out there who can help me out!!
Thanks in advance
Warren