Excel (VBA) - Open Outlook and send a file

Ask a question



Issue


I wonder if you can create a button (Type: OptionButton) which, when pressed automatically opens Outlook and automatically set the Excel file as mail attachment?

Solution

  • Office programs (Excel in particular) a feature exists to automate the sending of sheets by mail,.
    • (Send by mail the current file as an attachment)
  • On Excel 2007, simply click on :Menu/Send/Email


This function can be assigned to a button (using a macro).
Code used:
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team