Hello,
I am having trouble trying to prevent this error from popping up and I was wondering if anyone could give me any clue as to why this is occurring.
My code checks to see if a cell contains a certain status, such as Approved or Rejected. If the status is Approved, then the procedure copies the row and pastes it onto a different worksheet within the same workbook. The row is then deleted (in the ChangeStatus procedure).
Here is my code:
<code>
Dim strClient As String
<font color = "blue">On Error GoTo ErrHandler</font>
<font color = "blue">If Not Intersect</font>(Target, Range("L2:L500")) Is Nothing Then
strClient = Target.Offset(0, -10).Value
Call ChangeStatus(Target.Row, Target.Value)
End If
Exit Sub
ErrHandler:
' // statements for error handler
Exit Sub
</code>
I am having trouble trying to prevent this error from popping up and I was wondering if anyone could give me any clue as to why this is occurring.
My code checks to see if a cell contains a certain status, such as Approved or Rejected. If the status is Approved, then the procedure copies the row and pastes it onto a different worksheet within the same workbook. The row is then deleted (in the ChangeStatus procedure).
Here is my code:
<code>
Dim strClient As String
<font color = "blue">On Error GoTo ErrHandler</font>
<font color = "blue">If Not Intersect</font>(Target, Range("L2:L500")) Is Nothing Then
strClient = Target.Offset(0, -10).Value
Call ChangeStatus(Target.Row, Target.Value)
End If
Exit Sub
ErrHandler:
' // statements for error handler
Exit Sub
</code>