outlook-2013

Outlook hyperlink context menu

走远了吗. 提交于 2019-12-12 04:48:45
问题 I'm trying to make a context menu for a hyperlink. It seems there are several contexts where hyperlink events can be intercepted -- at the moment I'm interested in the context menu with idMso="ContextMenuReadOnlyMailHyperlink". There are two different ways the callback for my new button in this menu can be executed -- if hyperlink is right-clicked in the preview pane of Outlook, or if an email is opened for reading in its own window. When invoked from preview pane, my callback receives an

VBA Macro - customize Reply Button

一世执手 提交于 2019-12-11 20:11:44
问题 I've written a macro to add BCC address on reply window. But I want to do the same on click of 'Reply' Button. I can not add macro to this button as it is not custom button. How should I do this? 回答1: You can repurpose built-in controls. But in that case you need to develop an add-in, not a VBA macro. See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information. Also you may try to handle the ItemSend event of the Application class which is fired whenever an Microsoft

Enable/Disable Outlook Addin Programmatically

守給你的承諾、 提交于 2019-12-11 18:41:06
问题 I have created Add-in for outlook 2013. I wanted to on / off other addin. So I have used below code to do that. Outlook.Application OutLook = new Outlook.Application(); if (OutLook.Application.COMAddIns.Item("OutlookAddIn").Connect) { OutLook.Application.COMAddIns.Item("OutlookAddIn").Connect = false; } else { OutLook.Application.COMAddIns.Item("OutlookAddIn").Connect = true; } But it is working fine, only if I open outlook as administrator. For normal user, it is not working fine. So is

Outlook 2013 VBA display Shared Calendar

只愿长相守 提交于 2019-12-11 09:25:52
问题 I've got some VBa code that opens the Calendar in a new window, but I now need it to display the shared calendars that I've already got setup, but the only code I can find Creates a new shared calendar in the new window i've just created; Sub DispCalendars() Dim myOlApp As Outlook.Application Dim myNms As Outlook.NameSpace Dim myFolder As Outlook.MAPIFolder Dim myRecipient As Outlook.Recipient Dim myExplorer As Outlook.Explorer Dim SharedFolder As Outlook.MAPIFolder Set myOlApp = CreateObject

Invoke Ribbon button in Outlook 2013

大憨熊 提交于 2019-12-11 03:46:29
问题 We have an Outlook add-in. We need to programmatically cancel a task assignment in the TaskItem Inspector window, just the way the Cancel Assignment button does. One would think that calling TaskItem.CancelResponseState() might work. Although it does cancel the assignment, it also leaves the task in an unassignable state. The Assign Task button on the ribbon is disabled. In Outlook 2007 and 2010, we can get the CommandBarButton object for the Cancel Assignment button and call its Execute()

Saving an item in the drafts folder also creates a blank outbox item

岁酱吖の 提交于 2019-12-11 01:00:58
问题 I have a C# console app that dynamically creates a bunch of emails and saves them to the Drafts folder in Outlook 2013. However, I've run into an issue where the items I create are not only created in the Drafts folder, but a blank item is also created in the Outbox folder (one blank Outbox item is created for every filled in Drafts item). For comparison, when I try to create a draft email using the UI, it works as intended. I create a new email, click Save, and the item only appears in the

Outlook 2013 - VBA - Ribbon - onLoad not firing

你。 提交于 2019-12-10 21:38:28
问题 In %appdata%\Microsoft\Office\olkapptitem.officeUI I have: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="DoIt"> <ribbon startFromScratch="false"> <tabs> <tab idMso="TabMail"> <group id="group1" label="Hazaa!"> <button id="one" onAction="DoIt2" label="hi" visible="true"/> </group> </tab> </tabs> </ribbon> </customUI> In Outlook, in the VBA editor, I have a module called Module1 that has: Option Explicit Sub DoIt(ribbon As

How to get the CRM Entity Name from the Object Type Code of a RegardingID?

爱⌒轻易说出口 提交于 2019-12-10 10:39:13
问题 So it seems that it is a fairly common question in CRM to try get the object type code when you have an entity name. But since I always have to do things the hard way, I have the reverse task: I have the object type code, and need to get the entity name. In general, the ultimate task is to take the the CRM regarding information on an email, and use it to query CRM for additional info. I can get the regardingID and the object type code easily. And for standard entities I can use a hardcoded

How can i get the outlook free / busy rest api for my own company email exchange?

假装没事ソ 提交于 2019-12-08 09:18:19
问题 I use Microsoft outlook as a client to view my mail . How can i get the detail for particular user free / busy detail of calendar ? How can i see the rest api for this ? I have seen C# code for this and has checked that . Get appointments from coworker via EWS only with "Free / Busy time, subject, location" permission level But i need REST api for this . I have checked this. https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes How can i implement

How to create a dynamic submenu in contextmenu for outlook (VSTO)

十年热恋 提交于 2019-12-06 15:01:50
问题 I have a ribbon xml where I want to add something similar as in the picture. I tried create a button and connect the menu to the button but I never got the arrow indication there is a underlying menu. I have no faith at all in that button is the correct element to use. Been googling for hours now and would be happy if anyone can send me in some kind of direction. There is no problem for me to add the element in the context menu, the problem is the dynamic menu linked to the first element. 回答1