text = InputBoxMultiLine("A1セルに残す値を改行区切りで入力してください"); if (text == "") { return; } text = "\n" + text + "\n"; if (pos(text, "\n" + [1,1] + "\n") == 0) { [1,1] = ""; }