PDF Creator Macro

I've taken this macro file from some one post on the forum long time ago and it was working fine for m, but Now when I use it I receive the attached error message the problem is I'm not API guy I've just started to learn Visual Basic .Net to start making My own API. if any one could help in this issue it will be appreciated.

SolidworksApi macros