P
paresh
Hi,
I have noticed some issues with handling explorer change event when mailbox
is large. I have Outlook add-in which handles explorer change event like
below and displays senders name as a button caption which is created on
Outlook toolbar. It takes long sometimes to change the caption button.
Could you tell me how could I optimize the single email item selection event?
Thanks,
Paresh
My code:
Private WithEvents objExpl As Outlook.Explorer
Friend Sub InitHandler(olApp As Outlook.Application, strProgID As String)
Set objExpl = objOutlook.ActiveExplorer 'Explorer Object
End Sub
Private Sub objExpl_SelectionChange()
If objExpl.Selection.Count > 0 Then
For Each objMailItem In objExpl.Selection
If objMailItem.Class = olMail Then
msgbox "email item";
End If
Next
End If
End Sub
I have noticed some issues with handling explorer change event when mailbox
is large. I have Outlook add-in which handles explorer change event like
below and displays senders name as a button caption which is created on
Outlook toolbar. It takes long sometimes to change the caption button.
Could you tell me how could I optimize the single email item selection event?
Thanks,
Paresh
My code:
Private WithEvents objExpl As Outlook.Explorer
Friend Sub InitHandler(olApp As Outlook.Application, strProgID As String)
Set objExpl = objOutlook.ActiveExplorer 'Explorer Object
End Sub
Private Sub objExpl_SelectionChange()
If objExpl.Selection.Count > 0 Then
For Each objMailItem In objExpl.Selection
If objMailItem.Class = olMail Then
msgbox "email item";
End If
Next
End If
End Sub