Hello I have a Vba module which works fine for sending emails (through outlook).
I have the option to attach 2 files in my form.
Basically I have textboxs txtattach1 and txtattach2 which hold the file path for each attachment.
If both attachements contain a file path then it works no problem. If however one is empty it rejects it. I have read up and understand the attachments.add property rejects null and empty fields.
How do I get around this?
Also I would like to have up to 4 attachements.
Do I just repeat the attachements.add code for each attachment or is there a better approach to attaching more than one file to the outgoing email?
Thank you kindly. Mark
I have the option to attach 2 files in my form.
Basically I have textboxs txtattach1 and txtattach2 which hold the file path for each attachment.
If both attachements contain a file path then it works no problem. If however one is empty it rejects it. I have read up and understand the attachments.add property rejects null and empty fields.
How do I get around this?
Also I would like to have up to 4 attachements.
Do I just repeat the attachements.add code for each attachment or is there a better approach to attaching more than one file to the outgoing email?
Thank you kindly. Mark