Outlook calendar add-in

  • Thread starter William Sullivan
  • Start date
W

William Sullivan

I'm trying to develop an add-in that helps users add specific types of
appointments to the Outlook calendar. I'm trying to do some things, but am
having problems as there isn't any good docs available (vbaol11.chm stinks).
Please tell me if I can do any of the following (code snippets in c# are
appreciated):

1) Open the Calendar explorer when a toolbar button is clicked. Currently,
all I can figure out how to do is open a calendar explorer in a new window.
I'd like to do this in the current Outlook window

2) Once the Calendar Explorer is opened, I would like it to display in the
weekly mode. This is what is done by the "week" button on the Standard
toolbar.

3) I would like to add a menu item to the context menu that appears when
someone right-clicks on a date, alternatively to add a new tab to the Event
form that pops up when you double-click on a specific date.

The last one is a bit of pie-in-the-sky, but if its possible, I'd like to
use it. TIA!
 
S

Sue Mosher [MVP-Outlook]

1) Set Application.ActiveExplorer.CurrentFolder to the folder you want to
display

2) Execute the appropriate CommandBarButton on the toolbar. See
http://www.outlookcode.com/d/commandbarfun.htm

3a) Outlook does not directly expose the right-click context menu in its
CommandBars collection. You will, however, see a new right-click command is
when the item selected is using a custom form that includes one or more
custom actions. You can also add a custom action without using a custom
form, as demonstrated at http://www.outlookcode.com/codedetail.aspx?id=526

Richard Kagerer has posted a code sample at
http://www.outlookcode.com/codedetail.aspx?id=314 that shows how you might
trick Outlook into exposing the context menu through Explorer.CommandBars.

The C++ sample add-in at http://www.codeproject.com/atl/outlook2k3addin.asp
also shows a technique for working with the context menu.

3b) "a new to the Event form" would require a custom appointment form -- see
http://www.outlookcode.com/d/appointmentform.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top