Attachments wrongly attached VBA

Status
Not open for further replies.

rakesh seebaruth

Active Member
Joined
Oct 6, 2011
Messages
303
Hello guys

I have my excel file as per below drop box link



The main issue that i am having it that it does not attach the respective attachment to its email .

Let me explain :


Attachment Email Address
C:\Users\rakesh\Documents\d.pdf hs@intnet.mu
C:\Users\rakesh\Documents\ocr.pdf shr@intnet.mu
C:\Users\rakesh\Desktop\ERGISTRY\x.pdf rs@intnet.mu
C:\Users\rakesh\Desktop\ERGISTRY\y.pdf rakesh1974@orangez.mu

The file y.pdf is the attachment of email ------>rakesh1974@orangez.mu
The file x.pdf is the attachment of email .................> rs@intnet.mu
The files ocr.pdf is the attachment of email -------> shr@intnet.mu
The file d.pdf is the attachment of email ------> hs@intnet.mu

When i execute VBA, only file d.pdf is attached to its respective email that is hs@intnet.mu

the output for the others are as follows :-

File d.pdf,ocr.pdf, x,pdf and y.pdf are attached to mail rakesh1974@orangez.mu
File d.pdf, ocr.pdf ,x,pdf are attached to mail rs@intnet.mu
File d.pdf,ocr.pdf are attached to mail shr@intnet.mu

I am working on Sheet3

Thanks/regards

Rakesh
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Status
Not open for further replies.

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top