Hi all

I have a for loop as follows:

'initiate inner loop
For j = 1 To LastRowCashAcc

'Buy side checks (includes generic such as Tcodes and base currency)
If BUYcashStr = wbDeb.Worksheets("All Cash Accounts").Cells(j, 2) Then
'Check buy cash account currencies
BUYacc_ccy = wbDeb.Worksheets("All Cash Accounts").Cells(j, 4)
End If
Next j

When BUYcashStr does not appear in the wbDeb worksheet I obviously get an error. I need to handle this to skip to the next iteration i.e. Next j?

Many thanks

Jack