Python win32com, How to Hide Gridlines -
is there way hide gridlines in sheet excel 2007 using win32com.client
, python? i've been looking through msdn , there's gridline object under excel, refers hiding gridlines in chart:
http://msdn.microsoft.com/en-us/library/office/ff835311(v=office.15).aspx
code using testing is:
import win32com.client excel = win32com.client.dispatch("excel.application") excel.visible = true book = excel.workbooks.add() sheet = book.worksheets(1) sheet.active sheet.displaygridlines == false
there's no property displaygridlines
.
i'm sort of new using msdn site, maybe not searching through , it's quite possible, win32com
can't this?
ah, came across solution. grab active window after setting sheet object , setting 'displaygridlines' false:
import win32com.client excel = win32com.client.dispatch("excel.application") excel.visible = true book = excel.workbooks.add() sheet = book.worksheets(1) excel.activewindow.displaygridlines = false
Comments
Post a Comment