none
Use Command Button (VB) to display personal Outlook Calendar RRS feed

  • Question

  • Hello,

    I have a calendar folder in public folders which my users work in. 

    In certain instances, they may need/want to copy an item to their personal calendar.  In order to speed up the process and so they can see their availability, I would like to use a command button to display a one day view of their personal calendar in a new window and if it's possible to keep the window on top while they change the date and time in the public folder calendar, that would be helpful.

    Could someone please help with the necessary code?

    Thanks in advance,

    Dave M.

    Tuesday, October 6, 2015 6:05 PM

Answers

  • Hello Dave,

    One option is to place a custom form which can display information from the personal calendar. See Adjacent Windows In Outlook for more information. Also you may find the Creating Adjacent Windows In Outlook sample project helpful. To get this route working you need to develop an add-in.

    Another option is to try customizing the CurrentView property of the Folder class which allows to get a View object representing the current view. To obtain a View object for the view of the current Explorer, use Explorer.CurrentView instead of the CurrentView property of the currentFolder object returned by Explorer.CurrentFolder.

    The View object allows you to create customizable views that allow you to better sort, group and ultimately view data of all different types. There are a variety of different view types that provide the flexibility needed to create and maintain your important data.

    • The table view type (olTableView) allows you to view data in a simple field-based table.
    • The Calendar view type (olCalendarView) allows you to view data in a calendar format.
    • The card view type (olCardView) allows you to view data in a series of cards. Each card displays the information contained by the item and can be sorted.
    • The icon view type (olIconView) allows you to view data as icons, similar to a Windows folder or explorer.
    • The timeline view type (olTimelineView) allows you to view data as it is received in a customizable linear time line.

    Views are defined and customized using the View object's XML property. The XML property allows you to create and set a customized XML schema that defines the various features of a view.

    The XML definition describes the view type by using a series of tags and keywords corresponding to various properties of the view itself. When the view is created, the XML definition is parsed to render the settings for the new view.

    To determine how the XML should be structured when creating views, you can create a view by using the Outlook user interface and then you can retrieve the XML property for that view.

    To programmatically add a custom field to a view, use the Add method of the ViewFields object. This is the recommended way to dynamically change the view over setting the XML property of the View object.

    Tuesday, October 6, 2015 6:31 PM

All replies

  • Hello Dave,

    One option is to place a custom form which can display information from the personal calendar. See Adjacent Windows In Outlook for more information. Also you may find the Creating Adjacent Windows In Outlook sample project helpful. To get this route working you need to develop an add-in.

    Another option is to try customizing the CurrentView property of the Folder class which allows to get a View object representing the current view. To obtain a View object for the view of the current Explorer, use Explorer.CurrentView instead of the CurrentView property of the currentFolder object returned by Explorer.CurrentFolder.

    The View object allows you to create customizable views that allow you to better sort, group and ultimately view data of all different types. There are a variety of different view types that provide the flexibility needed to create and maintain your important data.

    • The table view type (olTableView) allows you to view data in a simple field-based table.
    • The Calendar view type (olCalendarView) allows you to view data in a calendar format.
    • The card view type (olCardView) allows you to view data in a series of cards. Each card displays the information contained by the item and can be sorted.
    • The icon view type (olIconView) allows you to view data as icons, similar to a Windows folder or explorer.
    • The timeline view type (olTimelineView) allows you to view data as it is received in a customizable linear time line.

    Views are defined and customized using the View object's XML property. The XML property allows you to create and set a customized XML schema that defines the various features of a view.

    The XML definition describes the view type by using a series of tags and keywords corresponding to various properties of the view itself. When the view is created, the XML definition is parsed to render the settings for the new view.

    To determine how the XML should be structured when creating views, you can create a view by using the Outlook user interface and then you can retrieve the XML property for that view.

    To programmatically add a custom field to a view, use the Add method of the ViewFields object. This is the recommended way to dynamically change the view over setting the XML property of the View object.

    Tuesday, October 6, 2015 6:31 PM
  • Thank you!

    Dave

    Tuesday, November 10, 2015 3:47 PM