Creating an appointment in another mailbox's calendar from Excel

mattaustin01

Board Regular
Joined
Feb 17, 2009
Messages
184
Hi all,

Wondered if anyone might be able to post some sample code for adding an appointment to a different mailbox's calendar from Excel.

Essentially there is a calendar which is viewable by all that I would like to be able to write appointments to using VBA. I have all the information that needs writing in a userform and am comfortable with how to add this to the subject line, body, and edit dates/times/busy or free etc, I'm just struggling to actually create the appointment in the first place.

I'm aware that the CreateItem method only works with your default Outlook Calendar, and have tried and tested several macros from around the web that successfully achieve this. Is it simpler to create it in my default folder then move it to the separate mailbox, or create it in the separate mailbox to begin with?

Any thoughts or sample code would be very much appreciated :)

Matt
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,634
Messages
6,125,931
Members
449,274
Latest member
mrcsbenson

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