A button to create email

-emma-

Board Regular
Joined
Jul 14, 2006
Messages
180
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I would usually try and work these kind of things out myself but am faced with a very tight deadline for this to be completed.

I have a very simple form that users complete and then hit a button which will send content of the form to a specific email address.

The form is located in range B2:K12 which is what I require to be included in the body of the email.

Cells E7 & E9 are the cells containing information that I require in the subject line of the email, separated by a dash. Below is an example of the subject line:

E7 = John Smith
E9 = AW761WHA
Subject line = John Smith -
AW761WHA

Is there anyone out there that could knock this out in super fast time for me please? I'd be forever grateful.

Thank you for reading

Emma
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi, thanks for your quick response. It does work for the most part - its the subject part that I cannot work out now! But once again, thanks for the help :)

Hi try

VBA Code:
.Subject = Range("E7").Value & " - " & Range("E9").Value

Assumes your form sheet is the activesheet otherwise, you will need to qualify the ranges.

Dave
 
Upvote 0
Hi try

VBA Code:
.Subject = Range("E7").Value & " - " & Range("E9").Value

Assumes your form sheet is the activesheet otherwise, you will need to qualify the ranges.

Dave
This works perfecty! Thank you, thank you, thank you and thank you!

From a Happy Emma (which doesn't often happen ?)
 
Upvote 0
This works perfecty! Thank you, thank you, thank you and thank you!

From a Happy Emma (which doesn't often happen ?)

Glad to have been of some help

many thanks for feedback

Keep safe

Dave
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,716
Members
449,116
Latest member
Aaagu

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