*guys does anyone has any opinion on this problem??? * On Fri, Jun 29, 2012 at 9:19 PM, ashwani agnihotri < ashwani.agniho...@gmail.com> wrote:
> Hi, > > I have a query..suppose i put some thing in column B and i have mail id in > column C i want to sent the mail on that ID. > > In the example given below if i enter done in column B a mail should be > send on address entered in column C > > A B C > > ram > > > > > > > > sham > > done > > *sham@xyzmail* > > > > rahim > > done > > *rahim@xyzmail* > > > > Abdul > > > > > > > > > Can someone help me with this?? > > > On Thu, Jun 28, 2012 at 4:05 PM, NOORAIN ANSARI > <noorain.ans...@gmail.com>wrote: > >> Dear Hemanath, >> >> Please try it.. >> >> Sub maildata() >> Dim olApp As Outlook.Application >> Dim olMail As MailItem >> Dim i As Integer, j As Integer >> Dim sh As Worksheet >> On Error Resume Next >> Application.ScreenUpdating = False >> Set olApp = New Outlook.Application >> Set olMail = olApp.CreateItem(olMailItem) >> Set sh = ThisWorkbook.Sheets(1) >> With sh >> j = sh.Range("B" & Rows.Count).End(xlUp).Row >> For i = 2 To j >> If CDate(.Cells(i, "B")) = Date Then >> With olMail >> .To = .Cells(i, "D") >> .CC = "noorain.ans...@gmail.com" >> .Subject = .Cells(i, "C") >> .Body = "Hi" & vbCrLf & vbCrLf & "Please find the >> attached Report" & " Thanks " & vbCrLf & vbCrLf & vbCrLf & "Regards" & >> vbCrLf & " Noorain Ansari" >> .Display >> End With >> End If >> Next i >> End With >> Set olMail = Nothing >> Application.ScreenUpdating = True >> On Error GoTo 0 >> End Sub >> >> -- >> Thanks & regards, >> Noorain Ansari >> www.noorainansari.com >> www.excelmacroworld.blogspot.com >> >> On Thu, Jun 28, 2012 at 2:29 PM, hemanath dhanasekar <hema5s...@gmail.com >> > wrote: >> >>> Friends, >>> >>> I have an excel spreadsheet with dates updated on it, all I need is that >>> the system should automatically send an Email to the specified email >>> address automatically by picking up that particular date. >>> >>> Ex: >>> >>> Date: Subject To >>> >>> 29/06/2012 Renew your Insurance hema5s...@gmail.com >>> >>> so, on 28th or 29th the system should automatically send an email and to >>> that particular person with that subject from spreadsheet. >>> >>> is that Possible? if yes means please help me. >>> >>> -- >>> Thanks >>> Hemanath.D >>> >>> -- >>> FORUM RULES (986+ members already BANNED for violation) >>> >>> 1) Use concise, accurate thread titles. Poor thread titles, like Please >>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >>> will not get quick attention or may not be answered. >>> >>> 2) Don't post a question in the thread of another member. >>> >>> 3) Don't post questions regarding breaking or bypassing any security >>> measure. >>> >>> 4) Acknowledge the responses you receive, good or bad. >>> >>> 5) Cross-promotion of, or links to, forums competitive to this forum in >>> signatures are prohibited. >>> >>> NOTE : Don't ever post personal or confidential data in a workbook. >>> Forum owners and members are not responsible for any loss. >>> >>> >>> ------------------------------------------------------------------------------------------------------ >>> To post to this group, send email to excel-macros@googlegroups.com >>> >>> To unsubscribe, send a blank email to >>> excel-macros+unsubscr...@googlegroups.com >> >> >> >> >> >> >> >> -- >> FORUM RULES (986+ members already BANNED for violation) >> >> 1) Use concise, accurate thread titles. Poor thread titles, like Please >> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice >> will not get quick attention or may not be answered. >> >> 2) Don't post a question in the thread of another member. >> >> 3) Don't post questions regarding breaking or bypassing any security >> measure. >> >> 4) Acknowledge the responses you receive, good or bad. >> >> 5) Cross-promotion of, or links to, forums competitive to this forum in >> signatures are prohibited. >> >> NOTE : Don't ever post personal or confidential data in a workbook. Forum >> owners and members are not responsible for any loss. >> >> >> ------------------------------------------------------------------------------------------------------ >> To post to this group, send email to excel-macros@googlegroups.com >> >> To unsubscribe, send a blank email to >> excel-macros+unsubscr...@googlegroups.com >> > > -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com