I can't seem to get this right. Using VB6, I have a form with an OLE control (MS ws) and I would like to open/display/use an XL wb. If this is possible, can someone provide me with some syntax or a link to some info? Thanks. Dave
[VBA]
Sub OpenXL()
Dim objExcel As Object, objWorkBook As Object, objWorksheet As Object
'display XL wb in form1 OLE1(MS XL Ws)
Set objExcel = CreateObject("EXCEL.APPLICATION")
Set objWorkBook = objExcel.Workbooks.Open("c:\tmpfile.xls")
Set objWorksheet = objWorkBook.Worksheets("Sheet1")
'syntax for opening Wb in OLE1????
'etc
End Sub
[/VBA]