Results 1 to 23 of 23

send email from excel to multiple recipients

Threaded View

hariexcel1987 send email from excel to... 11-17-2012, 02:34 PM
HaHoBe Re: send email from excel to... 11-18-2012, 09:59 AM
hariexcel1987 Re: send email from excel to... 11-18-2012, 02:30 PM
HaHoBe Re: send email from excel to... 11-18-2012, 03:27 PM
hariexcel1987 Re: send email from excel to... 11-19-2012, 11:37 AM
HaHoBe Re: send email from excel to... 11-19-2012, 03:20 PM
hariexcel1987 Re: send email from excel to... 11-20-2012, 11:49 AM
HaHoBe Re: send email from excel to... 11-20-2012, 04:42 PM
contaminated Re: send email from excel to... 11-20-2012, 04:50 PM
hariexcel1987 Re: send email from excel to... 11-23-2012, 10:00 AM
hariexcel1987 Re: send email from excel to... 12-03-2012, 04:43 AM
HaHoBe Re: send email from excel to... 12-03-2012, 08:25 AM
hariexcel1987 Re: send email from excel to... 12-03-2012, 12:08 PM
HaHoBe Re: send email from excel to... 12-04-2012, 02:30 AM
HaHoBe Re: send email from excel to... 12-04-2012, 05:37 AM
hariexcel1987 Re: send email from excel to... 12-04-2012, 12:10 PM
NRMDU Re: send email from excel to... 01-13-2013, 01:41 PM
hariexcel1987 Re: send email from excel to... 12-04-2012, 11:53 AM
hariexcel1987 Re: send email from excel to... 12-05-2012, 11:30 AM
HaHoBe Re: send email from excel to... 12-08-2012, 02:16 AM
hariexcel1987 Re: send email from excel to... 01-13-2013, 01:15 PM
  1. #1
    Registered User
    Join Date
    11-17-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Post send email from excel to multiple recipients


    send email notification from excel to multiple recipients
    Dear Team,

    Here i am but still i am getting error messge
    please see the below code :

    Sub Notify()
    Dim WS As Worksheet, Rng As Range, c As Range, D As Range, F As Range, p As Range
    Dim OutApp As Object, OutMail As Object
    Dim Msg As String, Addr As String, i As Long
    Dim NotificationNecessary As Boolean
    
    Set OutApp = CreateObject("Outlook.Application")
    Set WS = ThisWorkbook.Sheets("Sheet1")
    For Each c In Rng
    For Each D In Rng
    For Each F In Rng
    For Each p In Rng
    NotificationNecessary = False
    Msg = "Dear Sir/Madam" & Chr(13) & Chr(13)
    Msg = Msg & "Kindly provide the following clarification/ input required that we came across while processing your claim. "
    Msg = Msg & "We would need your inputs to proceed further on processing of this claim" & "Vendor Claim Details:" & "Document No./ Ref No & C.Offset(, 2) & "
    Msg = Msg & "having Invoice No" & D.Offset(2, 4)
    Msg = Msg & "of Vendor Name " & F.Offset(2, 6)
    Msg = Msg & "Reason for Holding " & F.Offset(2, 16)
    
    For i = 4 To 13
    If WS.Cells(Z.Row, i) = "X" Then
    Msg = Msg & " -" & WS.Cells(1, i) & Chr(13)
    NotificationNecessary = True
    End If
    Next
    If NotificationNecessary Then
    Msg = Msg & Chr(13) & "If the Hold document not resolved within 15 days from hold date the claim will be REJECTED." & Chr(13)
    Msg = Msg & Chr(13) & "Thank you,"
    Msg = Msg & Chr(13) & "Team"
    
    Set OutMail = OutApp.CreateItem(0)
    On Error Resume Next
    With OutMail
    .To = Q.Offset(, 1)
    .CC = ""
    .BCC = ""
    .Subject = " Your Bills on HOLD"
    .Body = Msg
    .Send
    End With
    Set OutMail = Nothing
    End If
    Next
    End Sub
    I would like to have a message in the below format :




    Dear Sir/Madam,
    Kindly provide the following clarification/ input required that we came acrosswhile processing your claim.
    We would need your inputs to proceed further on processing of this claim.

    Vendor Claim Details: Document No./ Ref No. XXXX [ having Invoice No -NO/LEGALCH/884 ] of Vendor code "XXX " of Vendor Name : "Vendor name

    Reason for Holding : Kindly attach the finance head approval for releasing thepayment.

    When you are sending any additional document, please attach a print out of thismail and then drop it in
    Wividus Box.

    We are awaiting your reply to proceed further.

    *************************************************************************** **********
    If the Hold document not resolved within 15 days from hold date the claim will be REJECTED

    *************************************************************************** **********
    For further clarification please feel free to conduct us.

    Regards,
    Team

    Moderator's Edit: Use code tags when posting code. To do so in future, select your code and click on the # icon at the top of your post window.
    Attached Files Attached Files
    Last edited by arlu1201; 11-18-2012 at 07:00 AM.

Thread Information

Users Browsing this Thread

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

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