Exit Sub
While VBA is great for internal macros, C# / VB.NET allows compilation into standalone EXEs. femap api tutorial