Dave,
You obviously ran it as a VBScript.
Here is the VBScript specific version.
As for learning catia vbs I would point you to COE forum
www.coe.org
'==========================================================================
' COPYRIGHT NPL 2001
'
' VBScript Source File -- Created with...