>Excel = createObject("ExObj")
>Excel.Show()
>
>
>DEFINE Class ExObj as custom
>
> ExcelObject = null
>
> Function init
> ExcelObject=createObject("Excel.Application")
> ExcelObject.Visible = .F.
>
> Function show
> ExcelObject.visible = .T.
>
>ENDDEFINE
The ExcelObject variable is scoped to the Init of your class.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown