Create outlook appointments using excel 2010

paildukkha

New Member
Joined
Mar 10, 2014
Messages
8
Hi,

I want to create outlook appointments in outlook 2010.
Below is the code which creates appointments.

Few issues which I need to fix -->
How do I invite attendees, if any?
Below code creates duplicates :(
For instance if the appointment is altered, how do I ask the macro to update the calendar?
Need an option for it to go to personal calendar or shared calendar.


Please assist.

Thanks,

Sub Add_Appointments_To_Outlook_Calendar()
'Include Microsoft Outlook nn.nn Object Library from Tools -> References
Dim oAppt As AppointmentItem
Dim Remind_Time As Double

i = 2
Subj = ThisWorkbook.Sheets(1).Cells(i, 2)

'Loop through entire list of Reminders to be added
While Subj <> ""
Set oAppt = Outlook.Application.CreateItem(olAppointmentItem)
oAppt.Subject = Subj
oAppt.Location = ThisWorkbook.Sheets(1).Cells(i, 3)
oAppt.Start = ThisWorkbook.Sheets(1).Cells(i, 4)
oAppt.End = ThisWorkbook.Sheets(1).Cells(i, 5)
oAppt.Body = ThisWorkbook.Sheets(1).Cells(i, 6)
'oAppt.AllDayEvent = True
oAppt.Save
i = i + 1
Subj = ThisWorkbook.Sheets(1).Cells(i, 2)

Wend

MsgBox "Reminder(s) Added To Outlook Calendar"

End Sub
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,545
Messages
6,125,448
Members
449,227
Latest member
Gina V

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top