Here is the code:
If the first row in Sheet Result is empty then I want to paste the value if not I want to jump to the second row and so on.
The row is highlighted in red in my code for
Selection.Copy _
Workbooks("AccessReview Automated tool V2.xls").Sheets("Result").Cells(2, 1).PasteSpecial Paste:=xlPasteValues
CODE:
If Worksheets("Result").Cells(1, 1) = "" Then
Sheets("New").Select
Range("D8:H8").Select
Selection.Copy _
Workbooks("name.xls").Sheets("Result").Cells(1, 1)
ElseIf Worksheets("Result").Cells(2, 1) = "" Then
Sheets("New").Select
Range("D8:H8").Select
Selection.Copy _
Workbooks("name.xls").Sheets("Result").Cells(2, 1).PasteSpecial Paste:=xlPasteValues
Else
Sheets("New").Select
Range("D8:H8").Select
'Selection.Copy _
'Destination:=Workbooks("name.xls").Sheets("Result").Cells(1, 1).End(xlDown).Offset(1, 0)
Selection.Copy
Workbooks("name.xls").Sheets("Result").Cells(1, 1).End(xlDown).Offset(1, 0).PasteSpecial Paste:=xlPasteValues