[python-win32] Excel and OLEObjects

2006-10-30 Thread Mark Norley
Hello I'm trying to insert an object into an Excel sheet with the following code: import win32com.client xlapp = win32com.client.Dispatch(Excel.Application) xlapp.Visible = 1 xlapp.Workbooks.Add() xlapp.ActiveSheet.OLEObjects.Add(FileName = C:\\mytext.tx', Link=False, DisplayAsIcon=False).Select

Re: [python-win32] Excel and OLEObjects

2006-10-30 Thread Bob Gailer
Mark Norley wrote: Hello I'm trying to insert an object into an Excel sheet with the following code: import win32com.client xlapp = win32com.client.Dispatch(Excel.Application) xlapp.Visible = 1 xlapp.Workbooks.Add() xlapp.ActiveSheet.OLEObjects.Add(FileName = C:\\mytext.tx', Link=False,