Hi Forum,
I have the following code that looks for the first non blank cell in Col("I"). Once it finds that cell it completes various Copy/Paste actions, when these are complete I would like to find the next non blank cell, starting 4 rows down rather than in the very next row. I have tried inculding an offset at the end of the if statement which does select the correct cell, however on the Next i it still goes to the next row down instead of the offset row selected. Please help!
Code
Dim LR As Long
Dim i As Integer
Dim Start As Integer
LR = ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell).Row
numRows = Selection.Rows.Count
numColumns = Selection.Columns.Count
Start = 2
For i = Start To LR
If Range("I" & i).Value <> "" Then
Range("A" & i).Copy Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).offset(1, 0)
Range("C" & i).Copy Sheets("Sheet2").Range("B" & Rows.Count).End(xlUp).offset(1, 0)
Range("H" & i).Copy Sheets("Sheet2").Range("C" & Rows.Count).End(xlUp).offset(1, 0)
Range("I" & i).Resize(numRows + 3).Select
Selection.Copy
Sheets("Sheet2").Range("E" & Rows.Count).End(xlUp).offset(1, 0).PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Range("I1").Copy Sheets("Sheet2").Range("D" & Rows.Count).End(xlUp).offset(1, 0)
Range("B1").Copy Sheets("Sheet2").Range("I" & Rows.Count).End(xlUp).offset(1, 0)
Range("C1:D1").Copy Sheets("Sheet2").Range("J" & Rows.Count).End(xlUp).offset(1, 0)
ActiveCell.offset(4, 0).Activate
Else:
End If
Next i
Display More
Currently it only searchs Col("I"). I would also love some assistance in offsetting the column from I to LastColumn, this would include making Range("I1").Copy change to active column.
Thank you in advance for any assistance offered.