hi all, i would appriciate some help 
i have two sheets named Unos_treninga and Test. I need to copy range I16:AA40 from Unos_treninga sheet to sheet Test to first empty row. There is condition - copy cells if cell in column I is not empty.
data is entered in every row in range, there is no possibility to have for example I16 populated, I17 empty, and I18 again not empty. So, macro should check based on cells in I column if is empty, stop copying, if not, copy cell in that row within the range.
here is macro i use for copying, but it doesn't check if cell in I is not empty, but coppies whole range.
Sub Copy_Paste()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("unos_treninga")
Set pasteSheet = Worksheets("test")
copySheet.Range("I16:AA40").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Thanks for help,
Kind regards,
Matija

i have two sheets named Unos_treninga and Test. I need to copy range I16:AA40 from Unos_treninga sheet to sheet Test to first empty row. There is condition - copy cells if cell in column I is not empty.
data is entered in every row in range, there is no possibility to have for example I16 populated, I17 empty, and I18 again not empty. So, macro should check based on cells in I column if is empty, stop copying, if not, copy cell in that row within the range.
here is macro i use for copying, but it doesn't check if cell in I is not empty, but coppies whole range.
Sub Copy_Paste()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("unos_treninga")
Set pasteSheet = Worksheets("test")
copySheet.Range("I16:AA40").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
Thanks for help,
Kind regards,
Matija