{"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":11,"n_cols":4,"rows_kept":11,"cut":false,"hidden":false,"merged":[]}
[]
[]
[]
[]
[null,"問題文",null,"解答方法"]
[null,"以下の要件を満たすVBAの\nプログラムを実装して下さい。",null,"解答プログラムは\n「開発」\n→「Visual Basic」\n→「Answer」\n内のSub answer()に記載して下さい。"]
[]
[null,"要件"]
[null,"最初に, シート「読み込み＆書き込みシート」をアクティベートする。"]
[null,"シート「読み込み＆書き込みシート」の読み込みセルの質問を取得し, \nその質問に応じて以下のように「書き込みセル」に書き込む。\n読み込みセルの質問:「あなたの出身地は？」→書き込みセルに書き込む返答:「東京都」\n読み込みセルの質問:「好きな食べ物は？」→書き込みセルに書き込む返答:「寿司」\n読み込みセルの質問:「あなたの職業は？」→書き込みセルに書き込む返答:「エンジニア」\n（読み込みセルの質問:空白→書き込みセルに書き込む返答:空白）"]
[null,"最後に, MsgBox関数（情報アイコン）で「返答記入完了！」と表示する。"]

{"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: Set ws = ThisWorkbook.Worksheets(\"読み込み＆書き込みシート\")\n    Dim question As String: question = ws.Cells(6, 2).Value\n    Dim answer As String: answer = \"\"\n    Dim writeCell As Range: Set writeCell = ws.Cells(6, 4)\n    ' 「読み込み＆書き込みシート」をアクティベートにする\n    ws.Activate\n    ' 質問の内容に応じて返答を設定\n    Select Case question\n        Case \"あなたの出身地は？\"\n            answer = \"東京都\"\n        Case \"好きな食べ物は？\"\n            answer = \"寿司\"\n        Case \"あなたの職業は？\"\n            answer = \"エンジニア\"\n    End Select\n    ' 返答を記入\n    writeCell.Value = answer\n    ' 返答完了メッセージを表示\n    MsgBox \"返答記入完了！\", vbInformation\nEnd Sub"]
[null,"↑上のプログラムは\n「開発」\n→「Visual Basic」\n→「CorrectAnswerExample」\nに記載してあります。"]

{"sheet":"読み込み＆書き込みシート","index":2,"n_rows":7,"n_cols":4,"rows_kept":7,"cut":false,"hidden":false,"merged":[]}
[]
[]
[]
[]
[null,"読み込みセル",null,"書き込みセル"]
[null,"あなたの出身地は？"]
[null,"↑読み込みセルの値を毎回, 変更して, 実行してみて下さい！"]