Re: [python-win32] Excel and OLEObjects

2006-10-31 Thread Mark Norley
thon-win32@python.org Subject: Re: [python-win32] Excel and OLEObjects 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"

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"', L

[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).Sel