| 46 |
|
sht = self.xlBook.Worksheets(sheet) |
| 47 |
|
sht.Cells(row,col).NumberFormat = format |
| 48 |
|
|
| 49 |
+ |
def setCellProperties(self, sheet, row, col, font = None, fontSize = None): |
| 50 |
+ |
"""A catch all for changing the properties of a cell. I can keep adding to this to avoid too many methods""" |
| 51 |
+ |
sht = self.xlBook.Worksheets(sheet) |
| 52 |
+ |
#sht.Cells(1,"A").AutoFilter(Field = 1, VisibleDropDown= False) |
| 53 |
+ |
#sht.Range("A1:B1").AutoFilter(Field = 2, VisibleDropDown= False) |
| 54 |
+ |
if font: |
| 55 |
+ |
pass |
| 56 |
+ |
if fontSize: |
| 57 |
+ |
sht.Cells(row,col).Font.Size = fontSize |
| 58 |
+ |
|
| 59 |
|
def getRange(self,sheet,row1,col1,row2,col2): |
| 60 |
|
"return a 2d array (i.e. tuple of tuples)" |
| 61 |
|
sht = self.xlBook.Worksheets(sheet) |