pdmw api

I hope this is an easy one.

I updated my solidworks from 2007 to 2009 SP5.1 recently. My macro does not work anymore and giving me run-time error 429 (ActiveX component can't create object) when I am trying to create connection to PDMWorks.

What can I be missing here?

Thanks in advance,

SolidworksApi macros