Email active workbook from command button

  • I have a workbook which I would like to be able to email when I'm finished editing and before closing so I have made a command button to 'send email' via my gmail account. However it only works for an unopened workbook and it works fine when I send another workbook from the pc.
    How can I modify the below code to be able to send the workbook I have open and am working on or even better would be a particular sheet from the workbook or the data from that sheet.


    Tester1 is not the open workbook it's the saved one on C: that I used to test the mail


  • Re: Email active workbook from command button


    Quote

    even better would be a particular sheet from the workbook or the data from that sheet


    If you copy the active sheet (or any sheet) without specifying any other parameters, it will be copied to a new workbook. That workbook can then be saved and attached to an email exactly as you do now.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!