I currently have some vba code that opens another workbook and sheet, finds the last row and pastes the data in the blank row below.
Im trying to add some code in another macro to lookup the sheet/column wsDest.Range("A:A") and find the wsSource.Range("C3").Value (Batch Number) that was pasted earlier so I can paste more data in that row. but struggling trying to get vba to somehow match wsSource.Range("C3")with the value in wsDest.Range("A:A") and select it so I can reference it to offset that cell to paste more data.
Excel Formula:
With wsDest.Range("A" & wsDest.Rows.Count).End(xlUp).Offset(1, 0) ' Find Column A last row + 1 to paste data
.Value = wsSource.Range("C3").Value ' (A) Batch
.Offset(0, 1).Value = wsSource.Range("C2").Value ' (B) Date
.Offset(0, 2).Value = wsSource.Range("C4").Value ' (C) Input
Im trying to add some code in another macro to lookup the sheet/column wsDest.Range("A:A") and find the wsSource.Range("C3").Value (Batch Number) that was pasted earlier so I can paste more data in that row. but struggling trying to get vba to somehow match wsSource.Range("C3")with the value in wsDest.Range("A:A") and select it so I can reference it to offset that cell to paste more data.