I need to find column named "Current" (preferred) or last column in general in the table named "YTD_input1" and fill all rows with text "Current" to the last row of the table.
My suggested code is below but does not work.
Dim pasteSheet As Worksheet: Set pasteSheet = wb.Worksheets("DPM input YTD_working")
Dim LastRow As Long, Nxtrw As Long, lCol As Long
LastRow = copySheet.Cells(Rows.Count, 1).End(xlUp).Row
lCol = pasteSheet.Cells(1, Columns.Count).End(xlToLeft).Select
pasteSheet.Range(lCol & LastRow).Value = "Current"
Can you please give me some advice how to build the code to be working?