{"text_format":"1","workbook":"xlsx","n_sheets":3,"sheets":["問題文＆解答","正答","読み込み＆書き込みシート"],"not_rendered":{"charts":0,"images":1,"macros":1,"external_links":0,"defined_names":0,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"問題文＆解答","index":0,"n_rows":10,"n_cols":4,"rows_kept":10,"cut":false,"hidden":false,"merged":[]}
[]
[]
[]
[]
[null,"問題文",null,"解答方法"]
[null,"以下の要件を満たすVBAの\nプログラムを実装して下さい。",null,"解答プログラムは\n「開発」\n→「Visual Basic」\n→「Answer」\n内のSub answer()に記載して下さい。"]
[]
[null,"要件"]
[null,"シート「読み込み＆書き込みシート」の「転記元テーブル」の\nデータ範囲の値をFor Each文でループして「転記先テーブル」に追加していく。\n尚、追加前に「転記先テーブル」のデータは削除しておく。"]
[null,"最後にシート「読み込み＆書き込みシート」をアクティベートにして, \nMsgBox関数で「実行完了」と表示する。"]

{"sheet":"正答","index":1,"n_rows":7,"n_cols":2,"rows_kept":7,"cut":false,"hidden":false,"merged":[]}
[]
[]
[]
[]
[null,"正答プログラム例"]
[null,"Option Explicit\n\nSub correctAnswerExample()\n    Dim ws As Worksheet\n    Dim sourceTable As ListObject\n    Dim destTable As ListObject\n    Dim sourceRow As ListRow\n    Dim destRow As ListRow\n    ' シート「読み込み＆書き込みシート」を取得\n    Set ws = ThisWorkbook.Sheets(\"読み込み＆書き込みシート\")\n    ' 転記元テーブルと転記先テーブルを取得\n    Set sourceTable = ws.ListObjects(\"転記元テーブル\")\n    Set destTable = ws.ListObjects(\"転記先テーブル\")\n    ' 転記先テーブルのデータを削除\n    If destTable.ListRows.Count > 0 Then\n        destTable.DataBodyRange.Delete\n    End If\n    ' 転記元テーブルの各行を転記先テーブルに追加\n    For Each sourceRow In sourceTable.ListRows\n        Set destRow = destTable.ListRows.Add\n        destRow.Range.Value = sourceRow.Range.Value\n    Next sourceRow\n    ' シート「読み込み＆書き込みシート」をアクティベート\n    ws.Activate\n    ' 実行完了のメッセージを表示\n    MsgBox \"実行完了\"\nEnd Sub"]
[null,"↑上のプログラムは\n「開発」\n→「Visual Basic」\n→「CorrectAnswerExample」\nに記載してあります。"]

{"sheet":"読み込み＆書き込みシート","index":2,"n_rows":8,"n_cols":4,"rows_kept":8,"cut":false,"hidden":false,"merged":[]}
[]
[]
[]
[]
[null,"転記元テーブル",null,"転記先テーブル"]
[null,"アイテム"]
[null,"ラスト"]
[null,"プログラム"]