Sending Spreadsheets - How To Add Text To The Body Of Email

Dec 16, 2011

I am using the following code to create several spreadsheets and send via email. This all works perfectly, but I would like to add text to the body of the email. What would I need to add to enable me to add text to the body of the email?

From Bottom of Code:

' Copy the Report sheet to a new book and e-mail
Sheets("Report").Copy
Application.Dialogs(xlDialogSendMail).Show _

[Code].....

View 2 Replies


ADVERTISEMENT

Sending Email With A Picture In Body

Mar 21, 2014

I have a process metric that I need to send via email.

I would like to automate this.

I am looking for the following

1. upon clicking send mail button the smart art used on the excel should be mailed.
2. the smart art should be pasted as Image on the body of the email.
3. The body should contain a text message like " dear receiver," <line break> " Please find the below process health for this week" <line break> "Regards," <line break> "Sender"
4. The size of the image on the email body should be height 3 inches and width should be 5 inches.

I have attached the spreadsheet for reference.

View 10 Replies View Related

Sending Email Via VBA - Add Hyperlink In The Body

Aug 14, 2012

I am using the below code to send a email by VBA in Excel but I am trying to add a hyperlink in the body of the email.

I would like to use '"Click Here" to go to Google - I only want to show "Click Here" in the email not the full web address

Sub SendEmailData()
Dim iMsg As Object
Dim iConf As Object
Dim cell As Range
'Dim strbody As String
' Dim Flds As Variant

[Code] ........

View 9 Replies View Related

Sending Linked Spreadsheets Via Email

Oct 21, 2013

I have two workbooks in the same folder which are linked bidirectionally. I send the files to a colleague, he updates them, increments the version number and then sends them back to me. I store them both in the same folder before opening them. However, on opening all links in one workbook have the form:

[Code] .....

The filename is correct (the updated book) but the sheet name, which hasn't changed, is now a #REF. Redefining the links restores the functionality but is going to become difficult when the plan is shared more widely.

Why this is happening and what I can do to make the links work permanently?

View 1 Replies View Related

Email Hyperlink Adding Body / Subject Text?

May 10, 2013

I have an email hyperlink setup on my excel sheet and I would like to automatically (not manually) add a sentence that is another cell (that changes from time to time) to the subject line or the body of the email.

View 1 Replies View Related

Get Certain Text From Email Body Message And Paste It To Excel

Jul 19, 2013

I am having trouble with copy-paste-from-outlook-to-excel routine. Is there a way where I can get a certain text (or numbers, perhaps) from an outlook email message and transfer it to an excel? It is fine to copy and paste one or a hundred emails, but it already exceeds 30 thousand email messages. I just wanted to know is there is a way for me to simplify my work through VBA.

Here is a sample of the email body:

"The lead with phone number 1231234567 is in the federal DNC list and has been rejected. We apologize for any inconvenience this may have caused. This email was automatically generated, please do not reply to it."

In this email body, i wanted to get only the number 1231234567 and paste it in the excel.

View 2 Replies View Related

Copy And Paste Text And A Chart Into HTML Email Body

Aug 6, 2014

So I have (some sort of standard) code to generate a Html emailbody.

Problem is I have data and on this data there is a chart.

Now when I copy and paste the range of these 2 sections it only gives me the data but not the chart (leaves that space blank).

How I can adjust this code so it also will paste the chart?

This is the code :

[Code] .....

View 2 Replies View Related

Excel 2007 :: Error In Creating Email Message In Body Text

Mar 16, 2014

I've set up an email to be sent via a macro (excel 2007 and outlook) and I expanded the body of the message and it now comes up with an error "Compile error: invalid outside procedure"

It was working when I only had 4 lines and now it's not working.

strbody = "Hi," & vbNewLine &_
"abc." & vbNewLine &_
"def." & vbNewLine & vbNewLine & _
"ghi" & InputBox("Enter Response date (dd/mm/yyyy)") & vbNewLine & vbNewLine & _
"jlk." & vbNewLine & vbNewLine & _
"lmn" & vbNewLine & vbNewLine & _
"ABC" & vbNewLine & vbNewLine & _
"XYZ" & vbNewLine & _

[code]....

View 3 Replies View Related

Sending Mail With Range As Body Using GMAIL

Mar 28, 2014

Normally i am able to send mail using gmail with example text by typing in body field. But I want to send Range(A8:D17) as message body.

First I defined body1 as variable range, then i set body1 as value of my required range in body of message i used variable 'body1' but it is giving error "run-time error '13' , Type mismached "

[Code] .....

Where I need to change in ordger to send mail using range as body .

View 1 Replies View Related

Sending Email Using Users Preferred Email Client

Jul 29, 2009

When I test the email link on my computer, the 'Outlook Express setup' wizard initiates. However, I don't use Outlook Express (Yahoo and Zimbra).
I am wondering of it is possible to automatically ensure that in cases where a user doesn't use Outlook Express by default that Excel will open the users default email client- which could be a web browser or another application? Is this something determined by each users (Control Panel?Registry?) settings for handling email hyperlinks? Is there a piece of VBA code I could include in the workbook which identifies the relevant email client to open?

I know I can simply provide my email address on the workbook and allow a user to copy/paste it into their email application but I feel that by minimising the amount of effort required by a user to provide a rating that I'll be more likely to receive user rating feedback.

View 3 Replies View Related

Paste Row To Email Body

May 3, 2009

I currently have a workbook that I track various projects with and periodically I will need to get updates for them. What I want to do is to select the row of the projects I need updates for, copy them and then paste them into the body of an Outlook 2003 email.

View 10 Replies View Related

Add A Hyperlink To Email Body

Jul 14, 2008

I have a file that sends an email when it's saved using the macro.
It pastes the the file name and file location into the body of the email.
I'd like it to be a hyperlink.

Sub Save()

Sheets("Datasheet").Select
Range("AW6").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

ActiveWindow.ScrollColumn = 1

Dim strDate As String
Dim strSave As String

strDate = Worksheets("Datasheet").Range("ay6").Value..........................

View 9 Replies View Related

Table Not Showing In Email Body

Jun 20, 2014

Please see attached workbook

At the moment when the workbook is opened the first time in the day emails are auto sent for any overdue items (all good)

1) there is a column with lead times in each sheet that should send a warning email when the lead time number of days
is reached( this sends the email but does not populate the table)?

Question how can i amend the code to either make the lead time populate the summary sheet or remove the lead time option

2) Also i have copied the template sheet over to add more shhets but the email table dont populate.

How should i be copying new sheets over?

1018823(1).xlsm

View 4 Replies View Related

Adding Range To Email Body?

Aug 13, 2014

I'm trying to add a range to this email code that will then paste the information into the body of this email however instead of getting the data I need i'm getting "-1" in the body instead.

I've tried defining the range below and adding that line to the main code but it doesn't work, the code will run but i get "-1" in the body.

View 13 Replies View Related

Insert Image In The Body Of Email?

Feb 2, 2012

insert image in the body of the email.

Sub Mailer()
'Sheets("BB Email Data").Select
pathname = Range("A1").Value 'defines attachment
Dim objol As New Outlook.Application
Dim objmail As MailItem
Set objol = New Outlook.Application
Set objmail = objol.CreateItem(olMailItem)

[code].....

View 1 Replies View Related

Copy Paste From Email Body To Excel

Jan 18, 2013

I have an email with body in tabular form. I need to copy this into excel in the as is condition.

When I do it manually, I see that the table nicely fits in different cells and looks good, but when I use a macro , I see that everything gets copied to a single cell.

View 6 Replies View Related

Copy Range To Email Body Using Clipboard?

Jan 30, 2014

I've wrote a function that allows me to insert a certain range to the body of an email. This email is composed in the code, too.So far I am able to build the emails body as plain text. how to retain the cell format also (colors, font size, border styles, ...)

View 14 Replies View Related

Putting A Clickable Link In The Body Of Email Sent

Nov 18, 2008

I've managed to get the following macro working except for one small thing - the link to the folder where the spreadsheet (that will be attached to the email) resides (which I got to work fine in a macro to send out tasks) just ends up as plain text and is not clickable

Make this link clickable in the email so that when the recipient receives the email they can just click on the link and go straight to the relevant folder please? (I've highlighted the line with what I would like to work as a link in red)

View 2 Replies View Related

Email Macro In 2007 With Variable Name In Body

Nov 4, 2009

I am searching for a macro where I can use in a command button to:

1. Launch Outlook
2. Insert variable name from the excel file within the body of the Email.
ex. ...Your new cost is: "NewCost"

View 2 Replies View Related

Multiple Lines In Body Of VBA Generated Email?

Jun 5, 2012

I'm attempting to put multiple lines of text (not one huge string) in the body of an email. I've tried Chr(13), Chr(10), vbcr, and vblf....all to no avail.

Sub AttachEmail()
Bk1 = ActiveWorkbook.Name
Sh1 = ActiveSheet.Name

[Code].....

View 5 Replies View Related

Copy Email Body To Excel Worksheet With VBA

Aug 14, 2012

I am trying to automate a process whereby i receive an email via outlook with a particular subject line every day and i want to copy the body of the email into an existing excel spreadsheet and save it.

It's the first time i've really used vba in outlook, and i have written one to save any attachments which works ok using rules/run a script, but i'm stuck when it comes to copying the body

It would be really useful if when pasting into excel it didn't go all into one cell and just pasted over like if you were performing it manually

View 1 Replies View Related

Email Body Switching From HTML To RTF In Outlook Web App?

Jan 2, 2014

I'm having an issue with some emails that I send out automatically. I use Ron de Bruin's code to send with the Range to HTML function from Mail Range/Selection in the body of the mail.

My issue is when I view in OWA, all the formatting is lost. There is no issue viewing in Outlook itself, but some of our sales people use the web app and the view is corrupted. Back when I did this manually, I would just copy and paste the range of cells into the body of the message, and there was never any problem with formatting in OWA.

Is there a setting that needs to be changed, or have code for pasting a range into the body of a message that works?

View 1 Replies View Related

Inserting Copied Data Into The Body Of An Email

Oct 26, 2009

I need to get data from an excel spreadsheet copied and into the body of an email.
I have set it up to copy the data required, i have the email open, i have the to and subject fields filled in but i can not get the copied data inserted into the email.
Where am i going wrong or better yet what do i need to write to get this to work.

Dim objOutlook As Object
Dim objOutlookMsg As Object
Dim msgtxt As String
Sub send()
msgtxt = Sheets("bed update report").Select
Application.Goto Reference:="Print_Area"
Selection.Copy
Set objOutlook = GetObject("", "Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(o)
'Set objOutlookMsg = objsession.CreateItem(olMailItem)
objOutlookMsg.display
With objOutlookMsg
.To = "someone@somewhere.co.uk"
.Subject = "Despatch Overtime Hours"
.body = msgtxt
.send

End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
End Sub

View 9 Replies View Related

VBA: Userform Sending Email

Jan 16, 2009

I'm working with an excel file, a userform and a command button. The command button is the main question here. Bascally when this button is clicked and email is sent to a specific person, me. This email also contains an attachment, and currently that is the active workbook open behind the userform. This works well, sort of. I sent this excel file to 5 co-workers to test. All but 1 worked OK. One, however, did not.

When the button was selected the standard Outlook message came up: "...an automated email is being sent on your behalf...select YES to continue..."...It all looks fine, but nothing happens...nothing shows up in their sent items folder and I do not receive this message.

Has anyone experienced this before? Is there a sitting with this users Outlook that prohibits the sending of automatic emails? I've added my command button code below...incase someone sees thing strange...(I am rather new to vba coding...)

View 4 Replies View Related

Email Sending Through Excel?

Aug 30, 2013

editing the code below. what i want is when i filter column X, all email addresses appearing in column V will be included in the TO field in my mail.

Option Explicit
Sub SendEmail()
Dim OutApp As Object

[Code]....

View 1 Replies View Related

Sending Email Via VBA In Excel

Jan 23, 2014

I have written code in VBA to send emails via Excel based on a name that is held in a spreasheet that is then looked up against an organisation address book. What I need to know is there anyway that you can save mails into the Draft folder that were unable to send for example if they have an email adress that is incomplete or not recognised or if the email box has reached capacity?

With OutMail
.SentOnBehalfOfName = "XXX"
.To = Emails
'.CC = "XXX"
.BCC = ""
.Subject = pi.Name & " - Enablement Request"

[code]......

View 4 Replies View Related

Creating Email From Userform - Body Contain Content From Textbox

Jul 9, 2014

I am working on a code which works, however, its is not working entirely as i intended. In this example, the body of the email should contain content from textbox.

I have 3 text boxes, not all are expected to be filled out. So if only textbox1 is filled out, the body should only include information derived from textbox1.

Whats happening now is that even if textboxes 2 and 3 arent filled out, the body of email produces blank formulas from textboxes 2 and 3. So how do i fix this code so that if I enter data into textbox1 only, the body of email will not include empty formulas? Ive also attached a copy of the Produced email file. Code in question is in red font

Attached Image : 7-9-2014 11-21-35 PM.png

View 4 Replies View Related

Email With Corresponding Addresses And Names In Body AND Subject Using Gmail

Dec 18, 2008

I use gmail, and have an excel sheet with hundreds of rows. I need to send each recepient an e-mail using their e-mail address (row D), and their name in the body and subject (row A). The rest of the body of the email will all be the same.

View 6 Replies View Related

Email Generation Using Macro - Add Certain Data From Spreadsheet Within Body

May 18, 2014

Trying to add a macro to generate an approval email with certain data from the spreadsheet within the body of the email. I have the following in place currently to deploy the email:

Sub Sendemail()
Dim Email_Subject, Email_Send_To, _
Email_Cc, Email_Body As String
Dim Mail_Object, Mail_Single As Variant
Email_Subject = "New Account Approval"

[Code] ....

What do I need to add the following cell values into the body of the email, All Sheet 1?

B6
B4
B8
F14
E16 : F16
E17 : F17
A25 : B25
A26 : B26
A27 : B27

Is there something simple I can insert to make this work?

View 2 Replies View Related

Compose Outlook Email Without Sending

Jun 17, 2014

I am trying to write a macro to compose an email in outlook without sending it. Ideally the macro would compose the email and the email would be left open for me to inspect before sending. Below are the details.

Column A contains the addresses
Column B contains the CC addresses
Cell C2 contains the message

I can change where the above info is located/arranged if need be.

My spreadsheet automatically generates the email addresses, which are dynamic. For control purposes my employer does not want me to have the email automatically sent, being the reason for me to want to inspect the email before sending it.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved