Code:
Sub Sample()
For i = 7 To [Count]
On Error Resume Next
Workbooks.Open (Cells(i, 1).Value)
If Err.Number <> 0 Then
Err.Clear
End If
On Error GoTo 0
'code when there's no error
Next i
End Sub
How can I add to my macro so that when it has an error it will bypass and go
to "Next i" and not the next code in line? Thanks!