行の高さ・列の幅を設定する:Excel VBA入門 |
スポンサードリンク | |
行の高さ(RowHeight) | 列の幅(ColumnWidth) |
Sub rei30_01() Worksheets("Sheet1").Activate Rows("2:3").RowHeight = 20 MsgBox Range("B2").RowHeight End Sub |
Sub rei30_02() Worksheets("Sheet1").Activate Rows("2:3").RowHeight = Worksheets("Sheet1").StandardHeight End Sub |
Sub rei31_01() Worksheets("Sheet1").Activate Columns("B:C").ColumnWidth = 15 End Sub |
Sub rei31_02() Worksheets("Sheet1").Activate Columns("B:C").ColumnWidth = Worksheets("Sheet1").StandardWidth End Sub |
スポンサードリンク
PageViewCounter
Since2006/2/27