Confirmation pop-ups

Monkeyman180

New Member
Joined
Sep 14, 2017
Messages
2
Hi All

I created a referral form to pass work from one team to another. I copied some code from another forum post to create a send button which would submit the form when it was complete. The issue I am facing is that there is no on screen confirmation that the send function has worked meaning people often click the button multiple times and flood the inbox.

The code I am using is

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Count = 1 Then
If Not Intersect(Target, Range("D94")) Is Nothing Then
Call Email
End If
End If
End Sub

This runs a macro which uses the code (I've removed the email address whilst posting in a public forum)

Sub Email()
ActiveWorkbook.SendMail Recipients:="xxxxx@xxxxxx.com"
End Sub

Ideally I would like a pop up that reads "Thanks, your referral has been submitted"

Can anyone help?

Note - I don't have visual basic to create a button, I've had to use colour and shadow to make a cell look like a button.

Thanks

Danny
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Ideally I would like a pop up that reads "Thanks, your referral has been submitted"

Hi, welcome to the board - maybe you could try this additional line:

Rich (BB code):
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Count = 1 Then
    If Not Intersect(Target, Range("D94")) Is Nothing Then
        Call email
        MsgBox "Thanks, your referral has been submitted", vbInformation
    End If
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,051
Messages
6,128,501
Members
449,455
Latest member
jesski

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