// ReplaceSelected.cms 2010.05.21 by あすかぜ // 選択範囲のみを置換します // 編集・再配布は自由です。 str1 = InputBox("検索文字列を入力してください"); if(str1 == ""){ return; } str2 = InputBox("置換文字列を入力してください"); for(y=SelTop; y<=SelBottom; y++){ for(x=SelLeft; x<=SelRight; x++){ [x,y] = replace([x,y], str1, str2); } }