MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Dim objApp As Outlook.Application Dim objNS As Outlook.Namespace Dim objFolder As Outlook.MAPIFolder Dim objDummy As Outlook.MailItem Dim objRecip As Outlook.Recipient Dim objAppt As Outlook.AppointmentItem Dim strMsg As String Dim strName As String On Error Resume Next ' ### name of person whose Calendar you want to use ### strName = "email.address" Set objApp = CreateObject("Outlook.Application") Set objNS = objApp.GetNamespace("MAPI") Set objDummy = objApp.CreateItem(olMailItem) Set objRecip = objDummy.Recipients.Add(strName) objRecip.Resolve If objRecip.Resolved Then On Error Resume Next Set objFolder = _ objNS.GetSharedDefaultFolder(objRecip, _ olFolderCalendar) If Not objFolder Is Nothing Then Set objAppt = objFolder.Items.Add If Not objAppt Is Nothing Then With objAppt .RequiredAttendees = "email.address;email.address" .Subject = "Store flip " .Start = year1 & "/" & month1 & "/" & day1 .AllDayEvent = True .Body = "Please create in new store location" .BusyStatus = olBusy .Send .Save End With End If End If Else MsgBox "Could not find " & Chr(34) & strName & Chr(34), , _ "User not found" End If Set objApp = Nothing Set objNS = Nothing Set objFolder = Nothing Set objDummy = Nothing Set objRecip = Nothing Set objAppt = Nothing
|Getting warning: You are about to delete 1 row(s)||9||53|
|how to know if my Checkbox is True in VB6.0?||9||60|
|VBA: copy range dynamically based on config sheet v2||3||50|
|VB6 common control 6 sp6 object library not registerd||3||23|