Need Help debugging macro to checkin to Workgroup PDM

I started with the code from this discussion https://forum.solidworks.com/message/118108#118108.

I got it to work on a part file and another text file but when I did an assembly file, I get a debug error on my error handling line. The code looks like this:

^More code above^
errorHandler:
    Debug.Print "Error: " & adoc.Name & " : " & Err.Description
    Resume Next
End Sub

There may be two problems (1) The assembly file not checking in & (2) Somethings wrong with my error handling code. I'm a really basic programmer, so you'll have to go slow. The error dialog I get is this:

SolidworksApi macros