Hello,
the macro below allows the user to select multiple attachments and works great but only if the files are all located in the same path .
Is there a way to select attachments saved in different locations? Is it possible to perahps pause the macro execution while an array containing all the user-selcted attachments gets created??
Please note that the attachments could be saved in completely different, random locations, so looping through a list of paths would not be a suitable option.
Many thanks for any help.
the macro below allows the user to select multiple attachments and works great but only if the files are all located in the same path .
Is there a way to select attachments saved in different locations? Is it possible to perahps pause the macro execution while an array containing all the user-selcted attachments gets created??
Please note that the attachments could be saved in completely different, random locations, so looping through a list of paths would not be a suitable option.
Many thanks for any help.
VBA Code:
If Not IsArray(wbFullName) Then
If wbFullName = False Then
Exit Sub
End If
End If
If IsArray(wbFullName) Then
For i = LBound(wbFullName) To UBound(wbFullName)
.Attachments.Add wbFullName(i)
Next i
Else
.Attachments.Add (wbFullName)
End If
End If
Last edited: