Hi Team,
First thanks for your free support.
My doubt is as follows:
When I have created a macro in Outlook under the "This Outlook Session", it will create an appointment when specific subject mail comes and hits my inbox.
But am unable to implement it when i have 2 or 3 different subjects from different users.I want either of the three subjects hitting my outlook from different users should create an apointment.
Below is the part of my code for your reference.
If TypeName(Item) = "MailItem" Then
changecase = LCase(Item.Subject)
If InStr(changecase, "Sub-1") > 0 Then
If SenderEmailAddress = " 123@xyz.com" Then
With olApt
.AllDayEvent = True
.Subject = "Sub-1"
.Location = "Desk"
.Start = Date + (TimeValue(Now) + TimeValue("00:15:00"))
.End = .Start + TimeValue("00:30:00")
Note:
Please take subjects as sub-2 and sub-3.
the above e-id mentioned is dummy one.tell me how to add different e-id's.
Thanks,
Gangi.
Page 1 of 1
Outlook Macro For Generating An Appointment
Share this topic:
Page 1 of 1
Help










