Send Email to Recipient Command

joshadambrown

New Member
Joined
Oct 15, 2018
Messages
4
I love the "send email to recipient" command and it works great for a tool I have in place to share updated negotiated prices.

As I need more people to be able to use the tool, I have to consider their "limitations."

Is there a code someone can provide me that allows me to create a button on the sheet - like a big "Send Prices" button - that will then act as a shortcut to clicking the much smaller icon at the top of the sheet in the quick access toolbar?

Thanks in advance,

AB
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Below is some code that will display the send email option in Excel, its taken from Ron de Bruins web page - http://www.rondebruin.nl/win/s1/outlook/bmail3.htm - there are other examples on this site

All I have done is stopped it sending and closing the envelope window so you get to see the email. In this basic code the Ron has designed it that if one cell is selected then the whole sheet should be sent, if more than one cell is selected then just that will be sent.

Code:
Sub Send_Selection_Or_ActiveSheet_with_MailEnvelope()
'Working in Excel 2002-2016
    Dim Sendrng As Range

    On Error GoTo StopMacro

    With Application
       .ScreenUpdating = False
      .EnableEvents = False
    End With

    'Note: if the selection is one cell it will send the whole worksheet
    Set Sendrng = Selection

    'Create the mail and send it
    With Sendrng

        ActiveWorkbook.EnvelopeVisible = True
        With .Parent.MailEnvelope

            ' Set the optional introduction field thats adds
            ' some header text to the email body.
            .Introduction = "This is a test mail."

            With .Item
                .To = ""
                .CC = ""
                .BCC = ""
                .Subject = "My subject"
                '.send
            End With

        End With
    End With

StopMacro:
    With Application
        .ScreenUpdating = True
        .EnableEvents = True
    End With
    'ActiveWorkbook.EnvelopeVisible = False

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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