Hi Folks,
I am trying to run a macro to find last row in column A and paste the value in column H:J. I am copying value from another workbook (OldWkb) and copying it in to new workbook. (NewWkb)
My data starts from cell A10. I have left some space at the top to insert some pictures. Is it possible to find the last row for data starting from A10?
I am using this code but gives me "Run-time error '9': Subscript out of range"
Lrow = NewWkb.wks.Range("A10").CurrentRegion.Rows.Count - 'Macro drops on this line
OldWkb.ws.Range("C2:E2").Value = NewWkb.wks.Range("H" & Lrow & ":J" & Lrow).Value
Any help is much appreciated.
Please let me know if I am not clear enough.
Regards
NK
I am trying to run a macro to find last row in column A and paste the value in column H:J. I am copying value from another workbook (OldWkb) and copying it in to new workbook. (NewWkb)
My data starts from cell A10. I have left some space at the top to insert some pictures. Is it possible to find the last row for data starting from A10?
I am using this code but gives me "Run-time error '9': Subscript out of range"
Lrow = NewWkb.wks.Range("A10").CurrentRegion.Rows.Count - 'Macro drops on this line
OldWkb.ws.Range("C2:E2").Value = NewWkb.wks.Range("H" & Lrow & ":J" & Lrow).Value
Any help is much appreciated.
Please let me know if I am not clear enough.
Regards
NK