Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created May 23, 2019 05:34
Show Gist options
  • Select an option

  • Save ebibibi/f3a056d5977522ff538c9c3cc26cc4bd to your computer and use it in GitHub Desktop.

Select an option

Save ebibibi/f3a056d5977522ff538c9c3cc26cc4bd to your computer and use it in GitHub Desktop.
Excel VBAにてテーブルにレコードを追加
Sub AddRecordToTable()
Set 購入リストテーブル = Worksheets("購入").ListObjects("購入リストテーブル")
With 購入リストテーブル.ListRows.Add
.Range(1).Value = "商品名"
.Range(2).Value = "100"
.Range(3).Value = "3"
.Range(4).Value = "300"
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment