Answer the question
In order to leave comments, you need to log in
Why is 1000 = "no" True?
Good afternoon!
There is a piece of working code:
On Error Resume Next
For row_port = 2 To row_port_end
For row_abc = 2 To row_abc_end
If Int(portion.Cells(row_port, 6).Value) = Int(abc.Cells(row_abc, 5).Value) Then Call any_do
Next row_abc
Next row_port
On Error GoTo 0
Answer the question
In order to leave comments, you need to log in
Make a normal handler:
For row_port = 2 To row_port_end
For row_abc = 2 To row_abc_end
On Error GoTo ErrHandler
val1 = Int(portion.Cells(row_port, 6).Value)
val2 = Int(abc.Cells(row_abc, 5).Value)
If val1 = val2 Then Call any_do
Next row_abc
Next row_port
Exit Sub
:ErrHandler
val1=0
val2=0
Resume Next
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question