Solidworks 2010 VBA - Checking in files

Solidworks is having a run time error at this line of code.

Set pdmwPdf = connection.CheckIn(pdfPath, pdmwDoc.project, "0", "Automated", "my notes", Default, "0", "0", False, pdmwDoc.References)

http://www.mytheral.com/storage/Solidworks_Error.PNG

My Box is 32bit and the Vault is also 32bit.

Both my box and the Vault are on SP 3.0

The PDF is being  correctly created and at the pdfPath location. (My Documents)

                  pdfPath: is a full path and filename

     pdmwDoc.project: is a valid project

pdmwDoc.Refrences: Is pulled in with pdmwDoc.project so I assume it's good, also I've tried it with a VB Nothing

I do have full ownership in of the project

But still it errors any help, advice, pointers would be much appreciated.

SolidworksApi macros