Code Result Error

Hi,

2017 SOLIDWORKS API Help - Add File Example (VB.NET)

I tried above example in VB but it shows the following errors.

Please help me on this.

SolidworksApi macros