import { split } from "lib/Array.cms"; sep = ","; from = InputBox("変換前のセルの内容を「,」区切りで入力してください。"); to = InputBox("変換後のセルの内容を「,」区切りで入力してください。"); if (split(from, sep).length != split(to, sep).length) { MessageBox(sep + "の数が一致しません。"); return; } all = ""; for (y = 1; y <= Bottom; y++) { all += sep + [x,y]; } all += sep; array = split(replace(all, sep + from + sep, sep + to + sep), sep); count = 0; for (y = 1; y <= Bottom; y++) { if ([x,y] != array[y]) { count++; [x,y] = array[y]; } } MessageBox(count + "個のセルを変換しました。");