As stated. This code works only if the exact amount between the quotes is used.("$200") I want the code to find all values greater than or equal to $200.
using > =.
I get no error message but no results with this code:
I know its probably a matter of correctly placing quotes and/or astericks. Do not want to use Autofiler code.
Thanks for anyone's help.
cr
using > =.
I get no error message but no results with this code:
Code:
Dim x As String, c As Range, rw, FirstAddress As Variant, ws As Worksheet
Set ws = Worksheets("AOS")
Application.EnableEvents = False
Application.ScreenUpdating = False
With ws.Range("E2:E1000")
Set c = .Find(">=200", LookIn:=xlValues) ---> this gives 0 results when I know there are at least 20 values greater than or equal to $200 in the column
If Not c Is Nothing Theno
rw = 2
FirstAddress = c.Address
Do
c.Select
Range(Cells(c.Row, 1), Cells(c.Row, 4)).copy Destination:=Sheets("REPORT").Range("A" & rw)
rw = rw + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> FirstAddress
Else
MsgBox "Code wrong"
End If
End With
Thanks for anyone's help.
cr