Hi all,
have an issue with creating pivottables with a variable source range in rows.
source data is sheet "Filter"
range of the data = B2 to L.....
row 2 having headers for the pivto. B= "DL", C= "Place", K= "Departed", L = "Arrived"
the code should create 2 different pivot's.
C = always row label
K =column label in pivot "Departed", L= column label in pivot "Arrived".
Count o DL (B) is value in both pivot.
Selection for variable range should be correct as below:
Dim lr As Range
lr = Sheets("Filter").Range("B3" & Rows.Count).End(xlUp).Row
anyone that can help me with implementing this into the creation of a pivot. Or is there a better solution?
thx ahead.
have an issue with creating pivottables with a variable source range in rows.
source data is sheet "Filter"
range of the data = B2 to L.....
row 2 having headers for the pivto. B= "DL", C= "Place", K= "Departed", L = "Arrived"
the code should create 2 different pivot's.
C = always row label
K =column label in pivot "Departed", L= column label in pivot "Arrived".
Count o DL (B) is value in both pivot.
Selection for variable range should be correct as below:
Dim lr As Range
lr = Sheets("Filter").Range("B3" & Rows.Count).End(xlUp).Row
anyone that can help me with implementing this into the creation of a pivot. Or is there a better solution?
thx ahead.