hi all
i am after a macro or advice on attaching a worksheet to a email (outlook). the way the worksheet works is that it will not be the active sheet that needs to be attached to the email.
can anyone help please
mick
hi all
i am after a macro or advice on attaching a worksheet to a email (outlook). the way the worksheet works is that it will not be the active sheet that needs to be attached to the email.
can anyone help please
mick
Are you saying that you are in a workbook with only two worksheets and you want to attach the second, non-active, worksheet to an email and do not want the recipients to see the currently active worksheet? Or are you saying that you want to attach a workbook that is not even open?
yes mate
workbook with two sheets, i want to attach the non active one only and not the active one. so basically create a macro that takes second sheet,makes a new workbook and emails it to
mick
I'm not sure how to mail just one worksheet without creating a new workbook. This macro will Save the current workbook in whatever location you specify with a new name. Change the file path and name to whatever you want. I like to keep the same file name so that it saves over itself every time I use the macro so that that I don't have hundreds of saved files. It's up to you if you want to keep backups though. The macro then deletes the active worksheet, leaving only the second worksheet. It will then attach itself to a new email for you!
Please Login or Register to view this content.
Hi All
I don't want to start a new thread here as I have a problem on exactly the same subject. It's been driving me mad for days.
I can create the email no problem but the email is just a part of a macro which saves saves a sheet from a workbook to pdf and sends it to a folder. The problem I'm having as attaching the saved pdf to the email. I've tried every combination of address for the file imaginable without success, I've attached the code to see if anyone can see where I'm going wrong. I've left my last attempt at the address in the .Attachments for you to see
Kind regards
Paul
http://www.excelforum.com/excel-prog...ml#post3484804Please Login or Register to view this content.
Last edited by FDibbins; 11-21-2013 at 08:37 PM.
Paul, thanks for reporting your post on this thread
To create your own thread for this, 1st copy all your text from here (I added the link to this thread for when you copy), click FORUM, select the VBA forum, new thread - then paste and submit
I added the link to this so that members can see what was done here
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks