I have the code which generates email through out look with customized subject and body of the letter, is it possible to insert the image(JPEG or any format) with text (not as an attachment) in body of the email, how to do it.
If FileName <> "" Then RDB_Mail_PDF_Outlook FileName, "firstname.lastname@example.org", "This is the subject", _ "This is the body of mail where i want to insert image" _ & vbNewLine & vbNewLine & "Regards Ron de bruin", False
The following will place values found in O19,020,&022 into an e-mail body. I'm attempting to place a selected range of cells into the body also. To do this I tried the highlighted section of code below.
I have a form which is going to be used as an aid to staff, I have created Macro's that when clicked enter information in to fields in the worksheet, I would also like the macro to generate an email with a specified Subject and body filled out. At the moment all I have achieved is to generate an email through File - Send to - Mail recipient.
I have also tried to have an email created through Outlook using MAPI, but once again have been unable to create an email with or without a subject and message body. Below is how far I have got in creating an email using MAPI.
This is part of Macro to insert information Application.CutCopyMode = False
Selection.Copy Sheets("Sheet1").Select Range("E12").Select ActiveSheet.Paste Call SendAMessage End Sub......................
I have a workbook that has multiple worksheets and I would like to use a command button to e-mail just one selected sheet. I want to create the single sheet as an attachment on a new e-mail message but leave the addressing to the user as it will vary, and not save the single sheet. My challenge is that the users have a variety of different e-mail clients (Outlook, Lotus Notes and others).
I am trying to write a macro to send mail on every Friday and also on last day of every month. If the last day of the month falls on Saturday or Sunday then the macro should mail on Friday. I have written a separate macro to send a mail. I have also written to check day(ie Monday, Tuesday etc) of today. If today is Friday or month end i can send mail. I dont know how to tell the macro to send mail on friday if the month last date is saturday or sunday.
Sub done() Dim Dat As Date, x As Integer, y As Date, sorry As String Dim str As String sorry = "Today is not friday or month end. So i cannot send mails" str = WeekdayName(Weekday(Now()))
I currently use CDO to email a range as body of an email in the form of a table, is there anyway to highlight the largest numbers in each column? This is how it appears in the email: (just noticed the spaces dont space out into a table like it does on email)
Resolving %88.96% Total PhoneQueue Email F8 Notes AddedDays Worked AVERAGE Leanne Stranks 673 300 286 87 475 14 48
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.
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.
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)
I'm trying to make a BMI (Body Mass Index) calculator. I've attempted it already but to no success. My first mistake was to read the values from cells in the spreadsheet which made things more complex than needed. So I started a new macro using a form instead for all data entry. I'm running into multiple problems with this
-Ask the user which method they prefer (see below formulas). -Input the result into a certain cell.
English BMI Formula BMI = ( Weight in Pounds / ( Height in inches ) x ( Height in inches ) ) x 703
Metric BMI Formula BMI = ( Weight in Kilograms / ( Height in Meters ) x ( Height in Meters ) )
I am trying to send out an e-mail from excel with all kinds of combined info. Here is what I have so far, which works to send out an e-mail to a certain address with a compiled subject. No luck with inserting the BODY of the e-mail yet from a certain cell.
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, ...)
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)
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 _