Hey all,
I am new to this forum and am only beginning to learn VBA. I am trying to create a VBA that will look to sheet "x" and return all of the rows in sheet "y" if column "s" in sheet "x" is greater than 5. I am getting an error with the first part of my code, which I titled "Sub Screener ()". Below is the code.
Any help would be much appreciated.
I am new to this forum and am only beginning to learn VBA. I am trying to create a VBA that will look to sheet "x" and return all of the rows in sheet "y" if column "s" in sheet "x" is greater than 5. I am getting an error with the first part of my code, which I titled "Sub Screener ()". Below is the code.
Code:
Sub Screener()
Dim LR As Long, i As Long
With Sheets("Sep.30.15")
LR = .Range("T" & i)
If .Value > 5 Then .EntireRow.Copy Destination:=Sheets("Screen").Range("A" & Rows.Count).End(xlUp).Offset(1)
End With
Next i
End With
End Sub
Any help would be much appreciated.