Mr. Robinow,
The code is only a small test code, not really meant to do anything. It's just meant to be used as a simple test to see if I can save data onto an excel sheet. This is the final part of larger code project. All it does is open an excel file, append data to it, and try to save the modified file. Most likely, I may have accidentally, left a line or two out of the code which is probabaly why it did not work for you. I apologize for that error on my part. Since win32com documentation is not localized, not easily accessible, at least by me, coding is a trial and error thing for me. FYI: I tried your suggestion and it worked. Now if I can only find the win32com way of finding the last row and column in a sheet, I'd be a happy camper :-) Thanks for the assist Little Guy -----Original Message----- From: David Robinow [mailto:drobi...@gmail.com] Sent: Tuesday, August 23, 2011 12:59 PM To: The Little Guy Cc: python-win32@python.org Subject: Re: [python-win32] Opening, Modifying, and Saving an Excel File from Python? On Sat, Aug 20, 2011 at 10:55 PM, The Little Guy <the_little_...@gmx.com> wrote: > Hi, > I apologize for the lengthy post. The code you posted does not run at all. I had to rename a few things to get it to do anything at all. It appears that xlrd is holding a reference to the excel file. I was able to get it to work by adding: book.release_resources() after the xlrd code.
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32