Gurus,
in my case here I want to use on error goto:
code does not seem to be working. Where do I place the on error statement or how do I find the right position to place it? Thank you!
in my case here I want to use on error goto:
VBA Code:
For ss_line = 1 To 10
Select Case ss_line
Case 1 To 9
cell1.Offset(0, ss_line + 3) = cell1.Offset(0, ss_line + 3) + _
WorksheetFunction.Index(tbl.DataBodyRange, WorksheetFunction.Match(cell.Value, tbl.ListColumns(3).DataBodyRange, 0), WorksheetFunction.Match("SS0" & ss_line, tbl.Range.Rows(1), 0))
on error goto notfound
Case 10
cell1.Offset(0, ss_line + 3) = cell1.Offset(0, ss_line + 3) + _
WorksheetFunction.Index(tbl.DataBodyRange, WorksheetFunction.Match(cell.Value, tbl.ListColumns(3).DataBodyRange, 0), WorksheetFunction.Match("SS" & ss_line, tbl.Range.Rows(1), 0))
End Select
notfound:
Next ss_line
code does not seem to be working. Where do I place the on error statement or how do I find the right position to place it? Thank you!