Save as a new workbook and email the attachment under conditions

nbuddhi

New Member
Joined
Jun 23, 2020
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Dear Team,
Selected data range of source file to be copies into a new word book and same to be email to a predefined group with below conditions.
Clicking the button " Email excel file" on source excel file, following steps to be done
Open a new excel file in "E:\New Excel Formats_Formula & Macro\New TRF_2021\" & save name as the value in cell "AT2" (AT2 value is changing as per current time)
Copy the range A:AM of this file and paste the content into the above said excel work book with all the formats except formula
Attach the newly created work book in to a new Microsoft outlook email
Email To: abc@example.com
CC : cxyz@example.com; efg@example.com; ghi@example.com
Subject : Value in cell "AT2"
Body : Dear,
Herewith enclosed the TRF for style# (Value in cell "H11)
Signature (Existing active signature in outlook)
Text format : Existing active text format in outlook
Thank you in advance.
(P.S: I tried to attach mini sheets using xl2bb add-in, but failed as it took long time without a response)
Best Rgds,
Nuwan Buddhika.
 

Attachments

  • Source file.jpg
    Source file.jpg
    197.6 KB · Views: 10
  • Destination_File.jpg
    Destination_File.jpg
    149.1 KB · Views: 10

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Dear Team,
Selected data range of source file to be copies into a new word book and same to be email to a predefined group with below conditions.
Clicking the button " Email excel file" on source excel file, following steps to be done
Open a new excel file in "E:\New Excel Formats_Formula & Macro\New TRF_2021\" & save name as the value in cell "AT2" (AT2 value is changing as per current time)
Copy the range A:AM of this file and paste the content into the above said excel work book with all the formats except formula
Attach the newly created work book in to a new Microsoft outlook email
Email To: abc@example.com
CC : cxyz@example.com; efg@example.com; ghi@example.com
Subject : Value in cell "AT2"
Body : Dear,
Herewith enclosed the TRF for style# (Value in cell "H11)
Signature (Existing active signature in outlook)
Text format : Existing active text format in outlook
Thank you in advance.
(P.S: I tried to attach mini sheets using xl2bb add-in, but failed as it took long time without a response)
Best Rgds,
Nuwan Buddhika.
It's a typo "new word book", it should be corrected as new workbook
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,051
Latest member
excelquestion515

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