Hi All,
Im using a Macro to copy a table from excel and put it in an email. Everything works but i can seem to get the ranges right. i want it to only copy up to the last row data input from A3 Down.
count_row = WorksheetFunction.CountA(Range("a3", Range("k3").End(xlDown)))
count_col = WorksheetFunction.CountA(Range("a3", Range("k3").End(xlToRight)))
Set pop = Sheets("tracking").Range(Cells(3, 1), Cells(count_row, count_col))
My data is in A3:K3 with them being the titles.
how do i get it to only copy up to the last input row in column A. as some of the other columns my still be blank up to K.
i keep messing around with the copied code above but getting nowhere!
Thank Guys.
Im using a Macro to copy a table from excel and put it in an email. Everything works but i can seem to get the ranges right. i want it to only copy up to the last row data input from A3 Down.
count_row = WorksheetFunction.CountA(Range("a3", Range("k3").End(xlDown)))
count_col = WorksheetFunction.CountA(Range("a3", Range("k3").End(xlToRight)))
Set pop = Sheets("tracking").Range(Cells(3, 1), Cells(count_row, count_col))
My data is in A3:K3 with them being the titles.
how do i get it to only copy up to the last input row in column A. as some of the other columns my still be blank up to K.
i keep messing around with the copied code above but getting nowhere!
Thank Guys.