I have put in an error trap in my code so that if there is an error, that it would skip all code and move to the designated marker. It's not working for me at all. Can somebody please help me figure out what is wrong? Here's the code:
On Error GoTo skip_download
If labels(indx).email <> "" Then
Workbooks.Open Filename:=Download_Path(indx), ReadOnly:=True
ActiveWorkbook.SendMail Recipients:=labels(indx).email, Subject:="Rhapsody Download Details " & current_timeframe & " " & labels(indx).label_name
ActiveWorkbook.Close savechanges:=False
End If
skip_download:
Next indx
Thank you very much!
On Error GoTo skip_download
If labels(indx).email <> "" Then
Workbooks.Open Filename:=Download_Path(indx), ReadOnly:=True
ActiveWorkbook.SendMail Recipients:=labels(indx).email, Subject:="Rhapsody Download Details " & current_timeframe & " " & labels(indx).label_name
ActiveWorkbook.Close savechanges:=False
End If
skip_download:
Next indx
Thank you very much!