I am trying to get the below piece of code to paste the values I want as values, but to do it by block range, not cell by cell.
I've tried the below code and a few other examples, but this one gets as close to what I want.
Sub main()
Dim LastRow As Long
Dim i As Integer
For i = 6 To 30
If IsEmpty(Sheets("Main").Cells(i, 6).Value) = False Then
Sheets("SSCC_Bin").UsedRange 'refreshes sheet2
LastRow = Sheets("SSCC_Bin").UsedRange.Rows(Sheets("SSCC_Bin").UsedRange.Rows.Count).Row 'find the number of used rows
Sheets("Main").Cells(i, 5).Offset(0, -2).Copy
Sheets("SSCC_Bin").Range("A1").Offset(LastRow, 0).PasteSpecial xlPasteValues
'copies and pastes the data
Else
End If
Next i
End Sub
I have formula's in column C of sheet 'Main' which are order numbers. I want them moved in one motion to SSCC_Bin. The code above does it cell by cell which plays with my formula's.