人力検索はてな 質問用Visual Basicコード
公開日:
:
最終更新日:2014/01/31
プログラミング
'列の幅を変更
Dim xlColumns As Excel.Range
xlColumns = xlApplication.Columns("B:B")
Try
xlColumns.Select()
Finally
If Not xlColumns Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlColumns)
End If
End Try
Dim xlActiveCell As Excel.Range
xlActiveCell = xlApplication.ActiveCell
Try
xlActiveCell.ColumnWidth = 9
Finally
If Not xlActiveCell Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlActiveCell)
End If
End Try
関連記事
- PREV
- マックブック買ったぜ
- NEXT
- Perlの文字クラス