具体的には、なぜnewFilenameの中でstrarray(1)とstrarray(2)の間にスペースがありますか?前もって感謝します!なぜ2つの配列要素の間にスペースがありますか?
Sub Button1_Click()
Dim orgFilename As String
Dim temp As String
Dim strarray(3) As String
Dim newFilename As String
orgFilename = Application.GetOpenFilename(FileFilter:="All files (*.), *.", Title:="Please select a file")
temp = Mid$(orgFilename, InStrRev(orgFilename, "\") + 1)
strarray(1) = Left(orgFilename, InStrRev(orgFilename, "\"))
strarray(2) = "processed_"
strarray(3) = temp
newFilename = Join(strarray)
End Sub