Hi, i have these following codes in the module. what they are for is they are looking value in column V, if value is less then 1.67 then it copyies the whoe row and paste that into sheet A. which is doing fine. my values are in negitive numbers as well, like -0.27 etc. now the thing is with my these following codes, it copies the empty rows as well. What i want to do is, if there is no value in column V then dont copy, onlu copy if value is less then 1.67.
can some one help me please. thanks in advance.
Sheets("ISRDATA").Select
' Find the last row of data
FinalRow = Range("A65536").End(xlUp).Row
' Loop through each row
For x = 16 To FinalRow
' Decide if to copy based on column V
thisvalue = Range("V" & x).Value
If thisvalue < 1.67 Then
Range("A" & x & ":AL" & x).Copy
Sheets("a").Select
NextRow = Range("A65536").End(xlUp).Row + 1
Range("A" & NextRow).Select
ActiveSheet.Paste
Sheets("ISRDATA").Select
End If
Next x
can some one help me please. thanks in advance.
Sheets("ISRDATA").Select
' Find the last row of data
FinalRow = Range("A65536").End(xlUp).Row
' Loop through each row
For x = 16 To FinalRow
' Decide if to copy based on column V
thisvalue = Range("V" & x).Value
If thisvalue < 1.67 Then
Range("A" & x & ":AL" & x).Copy
Sheets("a").Select
NextRow = Range("A65536").End(xlUp).Row + 1
Range("A" & NextRow).Select
ActiveSheet.Paste
Sheets("ISRDATA").Select
End If
Next x