+ Reply to Thread
Results 1 to 2 of 2

Email Macro Help

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    cali
    MS-Off Ver
    2010
    Posts
    15

    Email Macro Help

    Works great but the subject line is not being pulled in.

    [code]
    Sub SendEmail()
    Dim OutApp, OutMail As Object
    Dim Cell As Range
    Dim myBody As String

    Application.ScreenUpdating = False
    Set OutApp = CreateObject("Outlook.Application")

    Sheets("Modified").Activate 'rename to sheet where emails are located

    On Error GoTo cleanup
    For Each Cell In Range("j2:j3").Cells.SpecialCells(xlCellTypeConstants) 'Point this to email column
    If Cell.Value Like "?*@?*.?*" And _
    LCase(Cells(Cell.Row, "s").Value) = "y" Then
    Cells(Cell.Row, "t").Value = Now
    Set OutMail = OutApp.CreateItem(0)
    On Error Resume Next
    With OutMail
    .To = Cell.Value
    .Subject = "re: " & Cell.Offset(0, -1) ' THIS LINE DOESNT WORK
    Last edited by podunkus; 03-06-2016 at 05:17 AM.

  2. #2
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Email Macro Help

    See what happens if you set it to

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. attach different worksheet and email them tdifferent email address through macro/vba/addin
    By arunverma004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2014, 08:20 AM
  2. Email Macro - From excel sheet to Outlook email macro
    By juanes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2013, 01:59 PM
  3. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  4. Replies: 2
    Last Post: 08-01-2012, 02:47 PM
  5. Excel Email Macro VBA - How to send an email once all required fields have been fille
    By wallacm2009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 10:51 AM
  6. Replies: 6
    Last Post: 12-02-2011, 02:14 PM
  7. Macro doesn't automatically resolve All email address when email is drafted
    By sonny.thind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2011, 12:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1