Wondering if there’s a way to translate this excel vba code to LO.
It’s suppose to copy a data range from one sheet, select a 2nd sheet, find the last row of data on the 2nd sheet and paste the data from sheet 1.
Sub copyData()
Sheets("Data").Select
lr = Cells.Find("*", Cells(1, 1), xlFormulas, xlPart, xlByRows, xlPrevious, False).Row
Range("A2:F" & lr).Copy
Sheets("Target Book").Select
lrTarget = Cells.Find("*", Cells(1, 1), xlFormulas, xlPart, xlByRows, xlPrevious, False).Row
Cells(lrTarget + 1, 1,).Select
ActiveSheet.Paste
Columns("A:F").AutoFit
End Sub