Created
May 23, 2019 05:05
-
-
Save ebibibi/eac7525cd7e211a8e3602b45b7979eab to your computer and use it in GitHub Desktop.
Excelにてテーブル内のデータを取得
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub GetTableInformation() | |
| Set 購入リストテーブル = Worksheets("購入").ListObjects("購入リストテーブル") | |
| For i = 1 To 購入リストテーブル.ListRows.Count | |
| 商品名 = 購入リストテーブル.ListColumns("商品名").DataBodyRange(i) | |
| Debug.Print 商品名 | |
| 単価 = 購入リストテーブル.ListColumns("単価").DataBodyRange(i) | |
| Debug.Print 単価 | |
| 数量 = 購入リストテーブル.ListColumns("数量").DataBodyRange(i) | |
| Debug.Print 数量 | |
| 金額 = 購入リストテーブル.ListColumns("金額").DataBodyRange(i) | |
| Debug.Print 金額 | |
| Next | |
| End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment