rock007
January 25th, 2000, 10:34 AM
I was wondering how to place an OLE object into an OLE container without saving it to a file first. For Example:
'OLE1 is an OLE container on a form
Dim Excel1 As Object
Set Excel1 = CreateObject("Excel.Sheets")
Set OLE1.object = Excel1
This returns an error since (I think) the object property is read only. Does anyone know how to do this?
'OLE1 is an OLE container on a form
Dim Excel1 As Object
Set Excel1 = CreateObject("Excel.Sheets")
Set OLE1.object = Excel1
This returns an error since (I think) the object property is read only. Does anyone know how to do this?