Excel VBA

BuildPath is like a handy tool that automatically joins a folder and a file name together in the right way, so you don’t have to worry about slashes or mistakes.

BuildPath

BuildPath は、Excel VBA に用意されている「フォルダやファイルの道しるべ(パス)」をきれいにつなげるための道具です。

普通に文字をつなげると「\」を入れ忘れたり、逆に「\」が重なったりしてエラーのもとになります。

そこで BuildPath を使うと、こんなふうに安心です。

要するに、BuildPath は「パスのつなぎ間違いを防ぐための安全な合体機能」と覚えるとわかりやすいです。