![](https://excel-vba.work/wp-content/themes/cocoon-master/images/b-woman.png)
例えばB列の末尾に、
![実行前](https://excel-vba.work/wp-content/uploads/2021/03/vba_column_matubi_add_001.png)
![](https://excel-vba.work/wp-content/themes/cocoon-master/images/b-woman.png)
簡易な記載で値を追加できます!
![実行後](https://excel-vba.work/wp-content/uploads/2021/03/vba_column_matubi_add_002.png)
VBAコード
ここでは例として、
・シート「sample」のB列(=2列目)の末尾に
・値「aiueo」を追加
します。
Sub sample()
'列を指定
Const COLUMN As Long = 2
'列の末尾に追加
Worksheets("sample").Cells(Rows.Count, COLUMN).End(xlUp).Offset(RowOffset:=1) = "aiueo"
End Sub
実行結果
指定した列の末尾に値を追加できました。
![](https://excel-vba.work/wp-content/uploads/2021/03/vba_column_matubi_add_002.png)