﻿Dim folderPath As String '選択したフォルダーのパス
With Application.FileDialog(msoFileDialogFolderPicker)
	.Title = "フォルダを選択してください"
	If .Show = 0 Then
		'選択がキャンセルされた時の処理
	End If
	folderPath = .SelectedItems(1)
End With

'以降、選択したフォルダーのパスを使った処理を記述
MsgBox "選択したフォルダーのパスは、" & folderPath