Pivot Table - Selecting layout/Source Data

keltic

New Member
Joined
Sep 3, 2002
Messages
20
I have recorded a macro to create a pivot table but the current data/layout is hardcoded into the macro. The number of lines may increase on a monthly basis and the macro needs to be able to capture all the data.

Is there a way of telling the macro to find the last row and column of data to include in the layout ?

Or do I need to create an input box at the point where the macro selects the layout ?

Regards
keltic
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Watch MrExcel Video

Forum statistics

Threads
1,113,776
Messages
5,544,155
Members
410,595
Latest member
Tatum2020
Top