ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/Tool_Box/ExcelLib.py
(Generate patch)

Comparing Python/NinoCode/Tool_Box/ExcelLib.py (file contents):
Revision 685 by nino.borges, Thu May 7 20:06:07 2020 UTC vs.
Revision 686 by nino.borges, Thu May 7 20:59:05 2020 UTC

# Line 116 | Line 116 | class ExcelConnection:
116          """Deletes multiple columns or colume ranges wiht a list"""
117          ##  Example sheet.Range("D:E, H:H, J:K").EntireColumn.Delete
118          ##  Above gives an error, so I'm resorting to using python to loop
119 <        pass
119 >        pass
120 >
121 >    def removeHeaderFilterArrows(self, sheet, row, colStart, colEnd):
122 >        """Removes those filter arrows for all cells in a specified row."""
123 >        sht = self.xlBook.Worksheets(sheet)
124 >        for c in range(colStart,colEnd+1):
125 >            sht.Cells(1).AutoFilter(Field = c, VisibleDropDown= False)
126 >        #sht.Range("A1:B1").AutoFilter(Field = 2, VisibleDropDown= False)
127 >
128 >    def forceAutoFitRow(self, sheet, colStart, colEnd):
129 >        """Takes a colstart and colend and then performs an autofit on those columns."""
130 >        sht = self.xlBook.Worksheets(sheet)
131 >        sht.Columns("%s:%s"%(colStart, colEnd)).AutoFit()

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)