I am just experiencing exactly the same thing with the Explorers.SelectionChangeEvent. What I have done is :
Create the variable in Addin.vb
Any ideas?
Create the variable in Addin.vb
Private WithEvents explorers As Outlook.Explorers
set the value Public Sub OnStartupComplete(ByRef custom As System.Array) Implements IDTExtensibility2.OnStartupComplete
explorers = _outlookApplication.Explorers
End Sub
add the handler Private Sub explorers_SelectionChange(ByVal Explorer As Outlook.Explorer) Handles explorers.SelectionChangeEvent
'do something
End Sub
however, the compiler claims not to be able to find explorers.SelectionChangeEvent. Any ideas?