On Error Resume Next
This will skip over any line that causes an error. While this will do what you want, it can cause all sorts of seaming weird situations like when a condition in an IF causes an exception, it will fall into your true part
On Error GoTo 0
This will restore "normal" error behaviour