'パス名の途中にスペースを含むパス名を「”」で囲んだ文字列として取得する
Private Declare Sub PathQuoteSpaces Lib "shlwapi.dll" Alias "PathQuoteSpacesA" _
(ByVal lpszPath As String)
Private Sub Command1_Click()
Dim temp As String
temp = Me.Text1.Text & String(256, Chr(0)) 'フルパス名 & バッファ確保
Call PathQuoteSpaces(temp)
MsgBox temp
End Sub