Emailing Range as a pdf attachment

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Good evening everyone,

I wonder if there are some VBA people that like a challenge!

I am trying to find a way to copy a range, save it as a .pdf, open outlook, send email to recipient and message, copy ranged contents place onto another sheet as a list (ie next row down from previous entries) then blank range ready for next order

Big, big ask I know

I have tried the macro-recorder but it seems to miss out the outlook part

So, if possible I need the following at the click of a button

1. Copy Range A7:K74 from "orders" worksheet

2. open outlook

3. Send Copied range only as a pdf attachment named "Purchase order" to recipient with CC to another recipient with message "Purchase Order Attached"

4. Copy Range C25:I68 and paste as values only on worksheet "Received" beginning from C9 (Next order to go under this order etc)

5. Back to "Orders" worksheet C25:C68, E25:E68 and I16 to be cleared ready for next order,

6. select A1

Many thanks for any help
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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