How to create OLE Objects at run time, anyone give me the code solution
How to create OLE Objects at run time
Collapse
X
-
Originally posted by shuvo2k6OLE as an Object and that can embed any application
e.g.
[CODE=vb]dim obj1 as object
dim obj2 as object
set obj1 = createobject ("excel.applica tion")
set obj2 = createobject ("internetexplo rer,application ")
obj1.visible=tr ue
obj2.visible=tr ue
obj1.open("c:\m ybook.xls")
obj2.navigate "http://bytes.com"[/CODE]
since you set both as visible = true, they will appear in a new window, but you can embed any of them to your OLE control in your Form.
HTHComment
Comment