Re: Win32com and Excel

2008-01-10 Thread John Machin
On Jan 10, 8:21 pm, Mike P <[EMAIL PROTECTED]> wrote: > Hi, > > I currently have an excel table (1 table each time) that has differing > number of rows and differing number of columns each time, for another > program i use (SPSS) to import the data i need to know the cell range > of this data table

RE: Win32com and Excel

2008-01-10 Thread Ryan Ginstrom
> On Behalf Of Mike P > Does anyone have any code that does something similar? My > guess is i have to do something like thefollowing to enable > python to read xl? I think that what you want is UsedRange for row in sheet.UsedRange.Value: ... Regards, Ryan Ginstrom -- http://mail.python.

Win32com and Excel

2008-01-10 Thread Mike P
Hi, I currently have an excel table (1 table each time) that has differing number of rows and differing number of columns each time, for another program i use (SPSS) to import the data i need to know the cell range of this data table. I.e what the last row of data is and the last column that has d

Re: Win32com, and Excel issues.

2007-04-18 Thread kyosohma
On Apr 18, 1:58 pm, Ant <[EMAIL PROTECTED]> wrote: > Hi Mike, > > > I can't find anything about copying a worksheet, but I found a some > > fairly detailed information about COM objects and getting more > > information about Python's bindings to them > > here:http://www.oreilly.com/catalog/pythonw

Re: Win32com, and Excel issues.

2007-04-18 Thread Ant
Hi Mike, > I can't find anything about copying a worksheet, but I found a some > fairly detailed information about COM objects and getting more > information about Python's bindings to them > here:http://www.oreilly.com/catalog/pythonwin32/chapter/ch12.htmlor > here:http://mathieu.fenniak.net/pl

Re: Win32com, and Excel issues.

2007-04-18 Thread kyosohma
On Apr 18, 2:38 am, Ant <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm doing some Excel automation work for a friend, and am developing > on a machine running Office 2000. My friends machine is running Excel > 2003. The code I've written works like a charm on my machine (in fact > all three of my mac

Win32com, and Excel issues.

2007-04-18 Thread Ant
Hi all, I'm doing some Excel automation work for a friend, and am developing on a machine running Office 2000. My friends machine is running Excel 2003. The code I've written works like a charm on my machine (in fact all three of my machines), but falls over early on on Excel 2003. The code snipp