![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I need to intercept the Outlook "Track in CRM" event and fire a confirmation
message before the process continues. The problem is that the Click event fires after the message is actually tracked. What Outlook event can I intercept before an item is tracked? Option Explicit Dim WithEvents objButton As CommandBarButton Private Sub Application_Quit() Set objButton = Nothing End Sub Private Sub Application_Startup() Set objButton = ActiveExplorer.CommandBars.Item("Microsoft CRM").Controls.Item("Trac&k in CRM") End Sub Private Sub objButton_Click(ByVal Ctrl As Office.CommandBarButton, Cancel As Boolean) 'MsgBox "I've been clicked!" If MsgBox("Are you sure you want to send this item to CRM?", vbYesNo + vbQuestion _ , "CRM Track Confirmation") = vbNo Then Cancel = True End If End Sub Thanks. |
#2
|
|||
|
|||
![]()
There is no Outlook event "Track in CRM".
If you are using some CRM software it might fire an event but unless it's exposed to your program you can't do anything with it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin" wrote in message ... I need to intercept the Outlook "Track in CRM" event and fire a confirmation message before the process continues. The problem is that the Click event fires after the message is actually tracked. What Outlook event can I intercept before an item is tracked? Option Explicit Dim WithEvents objButton As CommandBarButton Private Sub Application_Quit() Set objButton = Nothing End Sub Private Sub Application_Startup() Set objButton = ActiveExplorer.CommandBars.Item("Microsoft CRM").Controls.Item("Trac&k in CRM") End Sub Private Sub objButton_Click(ByVal Ctrl As Office.CommandBarButton, Cancel As Boolean) 'MsgBox "I've been clicked!" If MsgBox("Are you sure you want to send this item to CRM?", vbYesNo + vbQuestion _ , "CRM Track Confirmation") = vbNo Then Cancel = True End If End Sub Thanks. |
#3
|
|||
|
|||
![]()
I'm actually using Microsoft CRM which embeds itself into Outlook via a COM
add-in. "Track in CRM" is a button that invokes the process of moving Outlook items into the CRM database. Thought there would be some sort of event that could be tapped into. "Ken Slovak - [MVP - Outlook]" wrote in message ... There is no Outlook event "Track in CRM". If you are using some CRM software it might fire an event but unless it's exposed to your program you can't do anything with it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin" wrote in message ... I need to intercept the Outlook "Track in CRM" event and fire a confirmation message before the process continues. The problem is that the Click event fires after the message is actually tracked. What Outlook event can I intercept before an item is tracked? Option Explicit Dim WithEvents objButton As CommandBarButton Private Sub Application_Quit() Set objButton = Nothing End Sub Private Sub Application_Startup() Set objButton = ActiveExplorer.CommandBars.Item("Microsoft CRM").Controls.Item("Trac&k in CRM") End Sub Private Sub objButton_Click(ByVal Ctrl As Office.CommandBarButton, Cancel As Boolean) 'MsgBox "I've been clicked!" If MsgBox("Are you sure you want to send this item to CRM?", vbYesNo + vbQuestion _ , "CRM Track Confirmation") = vbNo Then Cancel = True End If End Sub Thanks. |
#4
|
|||
|
|||
![]()
If you can get a handle to the button object you can try to intercept it's
Click event. Other than that it depends on whether or not the CRM program exposes a programming API, something Outlook developers wouldn't know anything about. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin" wrote in message ... I'm actually using Microsoft CRM which embeds itself into Outlook via a COM add-in. "Track in CRM" is a button that invokes the process of moving Outlook items into the CRM database. Thought there would be some sort of event that could be tapped into. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
getting calendar event reminder for deleted event | [email protected] | Outlook - General Queries | 3 | September 4th 06 03:11 PM |
Binding a Control to an ADODC Control, Is it possible | Andrew Sampels | Outlook - Using Forms | 1 | August 8th 06 11:02 PM |
Outlook view control and one process | [email protected] | Outlook and VBA | 6 | June 5th 06 10:21 AM |
Outlook view control and one process | [email protected] | Outlook - General Queries | 2 | May 31st 06 06:59 PM |
How to handling Custom Form Control Event in VB Com Add-In? | Raphaël ZHOU \(Jadiam\) | Outlook - Using Forms | 1 | January 11th 06 08:31 AM |