In that case you posted to the wrong forum - VBA is very different to VB.Net.

We don't have a forum for Solidworks VBA, but I think the best place would be our Office Development forum - thread moved.

Oh, and Welcome to VBForums