Hi all,
I have below code but it is throwing the errors , can some one help me out on this , all i am doing is copying the data from H14 till Oxx where xx is dynamic and pastin git in sheet2 starting from cell A. below is code.
I have below code but it is throwing the errors , can some one help me out on this , all i am doing is copying the data from H14 till Oxx where xx is dynamic and pastin git in sheet2 starting from cell A. below is code.
Code:
Sub DynCopy()
'
' DynCopy Macro
'
'
Dim srtRng As Long
srtRng = Range("H" & Rows.Count).End(xlUp).Row
Sheets("Sheet1").Columns("H14:O" & srtRng).Copy Sheets("Sheet2").Columns("A:E").Paste
End Sub