CDOLive LLC The Premier Resource for Microsoft Collaboration Data Objects             

Calendar Shortcut Form

This sample Microsoft Outlook 98/2000 form can be used to simulate Outlook folder shortcuts. After the form is published to a folder it displays an address book dialog to select a mailbox:

After a mailbox is selected and the item is saved a new item shows up in the folder. Each item can now just double-clicked to open the calendar folder of the appropriate user:

This is especially useful if you want to provide easy access to the calendar folders of your team members without let the user choose File, Open, Other Users Folder each time.

Known Issues

This sample can only be used with Microsoft Outlook 98/2000 installed in 'Corporate or Workgroup Mode', using the MAPI provider to access Microsoft Exchange Server.

After installing the Outlook security update this sample will stop working properly because of changes made by Microsoft. For more info on the Outlook security update please check Outlook e-mail Security Update

Note that the Office/Outlook 2000 setup does not install CDO 1.21 by default. You need to run the Office/Outlook 2000 setup and add CDO 1.21 as custom option.

Prerequisites

Make sure that Microsoft Outlook 98/200 is installed in Corporate or Workgroup mode and running properly, because CDO 1.2 is required to display the address book dialog and determine the Exchange address of the selected mailbox.

Checked Build

If you would like to use this sample with another language version of Microsoft Exchange Server or Microsoft Outlook, it is possible that the sample will not work without modifications. Please consult the source code for more information. This sample is built and checked for a proper function using the following environment:

  • Microsoft Windows NT Server 4.0, with Service Pack 5, US English - international
  • Microsoft Exchange Server 5.5, with Service Pack 3, US English - international
  • Microsoft Outlook 2000 English - international
Installation and Configuration
Component Description
'Team Calendar' Public Folder The public folder, which holds all items created with the 'Calendar Shortcut' form.
To create the public folder start Microsoft Outlook and logon as an Administrator who does have  permissions to create new public folders. In the left hand pane change to the public folders and create a new  Public Folder called 'Team Calendar', with the type 'Mail Items' and add the desired users with appropriate permissions..

To create a view as shown above, open the public folder and select 'View', 'Current View', 'Define Views'. Click 'New', enter 'Team Calendar' as view name and select 'Icon' as view type. Click 'OK' twice to create the view and close the 'Define Views' window.
calshort.zip
(10 Kbyte) Outlook form
The Microsoft Outlook 98/200 form, which can be used to simulate a calendar shortcut in a particular folder.

Click on the Outlook form template to start it and choose 'Disable Macros' if the macro warning dialog is displayed. To publish the form to the public folder on your Microsoft Exchange Server, change to the form design mode (in Microsoft Outlook 98/2000: 'Tools', 'Forms', 'Design This Form') and publish the form to the public folder 'Team Calendar'.

This form lets you create a new item in the particular folder that is used to simulate the calendar shortcut and it doesn't have any visible components. It uses CDO 1.x to determine if the selected address book entry is a valid mailbox and not a distribution list or Outlook contact etc. Later the e-mail address of the selected entry is extracted and stored in a user defined field. This e-mail address is used each time the form is opened to gain access to the calendar folder of the desired user.