excel: autosize column width?
#1
Posted 14 April 2009 - 02:03 PM
im using the excel udf that comes with the new version of autoit 3.3.0.0
is there a way to autoexpand or autosize the column width?
i remember seeing the development of this udf and noting a _excelsetcolumnwidth function along the lines...
#2
Posted 14 April 2009 - 02:16 PM
ActiveSheet.Columns(1).AutoFit
Wide by name, Wide by nature and Wide by girthScripts{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}UDFs{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~
#3
Posted 14 April 2009 - 02:18 PM
#4
Posted 14 April 2009 - 02:27 PM
#include <Excel.au3> Local $oExcel = _ExcelBookNew(1) _ExcelWriteCell($oExcel, "Something Long Here", 1, 1) _ExcelWriteCell($oExcel, "And something even longer", 2, 1) $oExcel.ActiveSheet.Columns(1).AutoFit
Wide by name, Wide by nature and Wide by girthScripts{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}UDFs{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~
#5
Posted 14 April 2009 - 02:41 PM
_ExcelSheetActivate($oExcel, "PRINTERS") _ExcelWriteCell($oExcel, $asset_label, $p + 1, 1) _ExcelWriteCell($oExcel, $asset, $p + 1, 2) _ExcelWriteCell($oExcel, $printers[$p][0], $p + 1, 3) _ExcelWriteCell($oExcel, "YES", $p + 1, 4) _ExcelWriteCell($oExcel, $printernote, $p + 1, 5) $oExcel.ActiveSheet.Columns(1).AutoFit
thanks for your help btw!!!
Edited by gcue, 14 April 2009 - 02:41 PM.
#6
Posted 14 April 2009 - 02:44 PM
hehe
thanks again!
#7
Posted 14 April 2009 - 02:48 PM
$oExcel.ActiveSheet.Columns("A:E").AutoFit
Wide by name, Wide by nature and Wide by girthScripts{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}UDFs{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~
#8
Posted 14 April 2009 - 02:54 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





