Sub SetAutoSize(ColumnIndex As Int)
Dim jsheet as JavaObject = sheet1
Dim jcell As JavaObject = jsheet1.RunMethod("getColumnView", Array(ColumnIndex))
jcell.RunMethod("setAutosize", Array(True))
jsheet.RunMethod("setColumnView", Array(ColumnIndex, jcell))
End Sub