[python-win32] Need help with converting a simple Excel macro

2006-08-04 Thread kc106_2005-pywin32
Hi list, I have a need to copy 3 rows of data from the top of my Excel spreadsheet to another location. I would have throught that this should be very straightforward since I've done a fair amount of Excel/Python programming. Unforturnately, I am stuck on this one. The VB Macro says I need to:

Re: [python-win32] Need help with converting a simple Excel

2006-08-05 Thread kc106_2005-pywin32
Thanks for the help, Roger. Yes, that works. I just have to remember that: xlSel=xlSheet.Range("1:1,2:2,3:3").Select() is *NOT* the same as: xlSel=xlSheet.Range("1:1,2:2,3:3") xlSel.Select() Thanks again. > Hi list, > > I have a need to copy 3 rows of data from the top of > my Excel spreadsh

[python-win32] Excel corrupted display problem

2006-08-17 Thread kc106_2005-pywin32
Hi list, I have a Python script that pops up Excel, fill it, and then continue. If the user clicks on my Python side to close Excel (via a call to the Quit() function), then I can reopen it later via another dispatch call and so forth. However, if the user close Excel from the Excel side, next

[python-win32] Setting attributes to a number of Excel cells

2006-10-30 Thread kc106_2005-pywin32
Hello list, We all know that it's better to set the values of a spreadsheet by building a squared virtual sheet first and then copy the whole thing over with one single range...value call. But Is there a more efficient way to set the attributes of a number of cells in Excel? I am noticing a s

[python-win32] Constants quit working under Python 2.5

2007-04-07 Thread kc106_2005-pywin32
Hi list, I upgraded to Python 2.5 for evaluation and testing. After installing the pywin32-210.win32-py2.5.exe, I found that the constants module doesn't work. For example, this code fails: from win32com.client import Dispatch, constants print constants.xlDown I re-execute makepy.py

[python-win32] Re: Constants quit working under Python 2.5

2007-04-09 Thread kc106_2005-pywin32
> > Hi list, > > > > I upgraded to Python 2.5 for evaluation and testing. > After installing the pywin32-210.win32-py2.5.exe, I found that the > > constants module doesn't work. For example, this code fails: > > > > from win32com.client import Dispatch, constants > > > > print constants.xl