Can anyone tell me how to convert the VBA code to VB below?

hatchObj.AppendOuterLoop(outerLoop)

When I use in VB, it appeare a note and tell wrong number 438.

How to correct it? thank you.