目的 指定したフォルダの中にある複数の Excel ファイルに対して文字列の一括検索1や一括置換をおこないます。 使用方法 最も簡単なのは、下記のスクリプトをバッチファイル(拡張子 .bat)として保存して、その上に Excel ファイルが含まれるフォルダ(1つのみ)をドラッグ&ドロップする方法です。この場合、検索文字列や置換文字列はスクリプトファイルの中に直書きして使用します。 PowerShellコンソール上で使用する場合は、スクリプト中で定義されている ExcelFind, ExcelReplace の各関数を直接利用する方が使い勝手がよいと思います。 スクリプト PowerShellスクリプトですが、Windows バッチファイルとしても実行できる特殊な構造になっています。 バッチファイルとして実行する場合は拡張子を .bat として、PowerShellスクリプトとして実行する場