Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
EXCEL VBA CODE HELP
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="asknrk" data-source="post: 23599724" data-attributes="member: 18756"><p>HI FRIEND </p><p></p><p></p><p>MATA HELP EKKAK ONA VBA WALIN LIYANNA PODI PROGARMME EKKAK EMAIL SEND KARANNA .</p><p></p><p>MEU CODE EKA BODY EKATA TAWA TEXT ADD KRANNA BAHA AI A</p><p></p><p>Sub Mail()</p><p></p><p>On Error Resume Next</p><p></p><p>Dim o As Object</p><p></p><p></p><p>Set o = CreateObject("Outlook.Application")</p><p></p><p></p><p>Dim omail As Object</p><p></p><p>Set omail = CreateObject("Outlook.MailItem")</p><p></p><p>Dim i As Long</p><p>For i = 2 To Range("a3000").End(xlUp).Row</p><p>Set omail = o.CreateItem(olMailItem)</p><p> With omail</p><p> </p><p> .body = "Dear Sir/Madam," & vbNewLine & "The attached invoice could not be processed and the details are as follows." & vbNewLine & vbNewLine & "Sr. No | VD Code | Vendor Name | Inv Date | Invoice No | Inv Value | Currency | PO Number | Legal Entity | Return to Party | PO Creator | Returned Date | Returned By | Returned Reason | Variance | Notes | Email to be Sent| " & vbNewLine & Cells(i, 29).Value & vbNewLine & "Please note that we are holding the document and will only proceed based on your response to this email" & vbNewLine & "In case you have to send a fresh invoice replacing the above mentioned, please send it separately addressed to 'Issue Resolution Unit - AP' mentioning the above mentioned serial number. Please confirm the same via email response once the replacement invoice is dispatched to SSC." & vbNewLine & "If this does not relate to you, please let us know by return email." & vbNewLine</p><p> .To = Cells(i, 17).Value</p><p> .Subject = "INVOICE RETURN > ACTION REQUIRED TO PROCEED WITH PAYMENT -" & Cells(i, 1).Value</p><p> .Attachments.Add Cells(i, 30).Value</p><p> sPath = Environ("appdata") & "C:\Users\......\AppData\Roaming\Microsoft\Signatures\AP TEST1.rtf"</p><p> .send</p><p> </p><p></p><p> </p><p> </p><p></p><p>End With</p><p></p><p>Next</p><p></p><p></p><p>End Sub</p></blockquote><p></p>
[QUOTE="asknrk, post: 23599724, member: 18756"] HI FRIEND MATA HELP EKKAK ONA VBA WALIN LIYANNA PODI PROGARMME EKKAK EMAIL SEND KARANNA . MEU CODE EKA BODY EKATA TAWA TEXT ADD KRANNA BAHA AI A Sub Mail() On Error Resume Next Dim o As Object Set o = CreateObject("Outlook.Application") Dim omail As Object Set omail = CreateObject("Outlook.MailItem") Dim i As Long For i = 2 To Range("a3000").End(xlUp).Row Set omail = o.CreateItem(olMailItem) With omail .body = "Dear Sir/Madam," & vbNewLine & "The attached invoice could not be processed and the details are as follows." & vbNewLine & vbNewLine & "Sr. No | VD Code | Vendor Name | Inv Date | Invoice No | Inv Value | Currency | PO Number | Legal Entity | Return to Party | PO Creator | Returned Date | Returned By | Returned Reason | Variance | Notes | Email to be Sent| " & vbNewLine & Cells(i, 29).Value & vbNewLine & "Please note that we are holding the document and will only proceed based on your response to this email" & vbNewLine & "In case you have to send a fresh invoice replacing the above mentioned, please send it separately addressed to 'Issue Resolution Unit - AP' mentioning the above mentioned serial number. Please confirm the same via email response once the replacement invoice is dispatched to SSC." & vbNewLine & "If this does not relate to you, please let us know by return email." & vbNewLine .To = Cells(i, 17).Value .Subject = "INVOICE RETURN > ACTION REQUIRED TO PROCEED WITH PAYMENT -" & Cells(i, 1).Value .Attachments.Add Cells(i, 30).Value sPath = Environ("appdata") & "C:\Users\......\AppData\Roaming\Microsoft\Signatures\AP TEST1.rtf" .send End With Next End Sub [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom