excel取某一数据的列

>>> xlApp = win32com.client.Dispatch('Excel.Application')
>>> xlBook = xlApp.Workbooks.Open("d:\\3.xls")

a=xlBook.Worksheets("Sheet1")

c = a.Cells.Find("dd")

print c.Row

print c.Column

posted @ 2013-05-17 01:14  dengyigod  阅读(174)  评论(0编辑  收藏  举报