【Excel】文字列を置換するマクロ 2017年7月11日 (火) 22:42 in Excel , VBA 文字列を置換するには、Replace関数を使います。 例たとえば、文字列の中の「池」を「泉」に置換するには次のように記述します。 12345Sub StringReplace() MsgBox Replace("ハロー!小池さん", "池", "泉") End Sub 実行結果 Please enable JavaScript to view the comments powered by Disqus. スポンサーリンク https://hosopro.blogspot.com/2017/07/excel-vba-string-replace.html 【Excel】文字列を置換するマクロ Related Posts