Certain ActiveX controls can only be instantiated within a form, which
complicates things. Otherwise, SaveAsClass would be perfect.
>You could also use the SaveAsClass method of the object. If you can instantiate the object, then you can use this method to save to a specified class library. You can also specify any comments you want to be associated with the class. Ex.
>lox = createobject('myclass')
>lox.SaveAsClass('NewClassLib','NewClassName','NewDescription')
>
>HTH.