Error while saving Recorded macro as vbproj

Hi

     I have recorded a macro for opening and closing document.When I am saving the macro as .vbproj it gives following error ".....C was not found"

I have visual studio 2005/2006 installed.Can anyone suggest why it is giving error

Regards

Anil Ghotekar

SolidworksApi macros