Hi all!
Got another newb question for ya.
I'm attempting to grab updated data from a query table and pin it to the bottom of a static table to track year to date trends.
Here's the code I've got:
The code is doing the same thing to 2 separate tables and it runs fine *but* the macro adds an additional 20 blank rows to the bottom of each table.
Ex.
Before:
After:
Thank you in advance!
Got another newb question for ya.
I'm attempting to grab updated data from a query table and pin it to the bottom of a static table to track year to date trends.
Here's the code I've got:
VBA Code:
Sub TC_Copy_Paste()
Dim TC As Worksheet
Set TC = Worksheets("TC Data Dump")
With TC
.Range("P3", ("X3" & .Range("P" & Rows.Count).End(xlUp).Row)).Copy Destination:=TC.Cells(Rows.Count, 5).End(xlUp).Offset(1)
.Range("AJ3", ("AR3" & .Range("AJ" & Rows.Count).End(xlUp).Row)).Copy Destination:=TC.Cells(Rows.Count, 26).End(xlUp).Offset(1)
End With
End Sub
The code is doing the same thing to 2 separate tables and it runs fine *but* the macro adds an additional 20 blank rows to the bottom of each table.
Ex.
Before:
After:
Thank you in advance!