Cronk
Registered User.
- Local time
- Tomorrow, 07:02
- Joined
- Jul 4, 2013
- Messages
- 2,772
The problem is trying to attach an attachment that does not exist.
Test if there is an attachment in the loop.
For x = LBound(varPaths) To UBound(varPaths)
if len(varPaths(x) & "") >0 then
.Attachments.Add varPaths(x)
endif
Next
Test if there is an attachment in the loop.
For x = LBound(varPaths) To UBound(varPaths)
if len(varPaths(x) & "") >0 then
.Attachments.Add varPaths(x)
endif
Next