Thread
: [Solved]
Select until last row
View Single Post
08-12-2022, 01:28 AM
Marcia
Windows 10
Office 2019
Expert
Join Date: May 2018
Location: Philippines
Posts: 553
Select until last row
Hi. This code selects the range A5 to AQ50. I would like the code to select only the rows from A5 until the last row of a dynamic pivot table.
Code:
Dim lr As Long Range("A5:AQ5" & lr).Select Selection.Copy
What should the line be?
Thank you.
Marcia
View Public Profile
Find all posts by Marcia