AdvancedSearchComplete event doesn't

H

hardvark

Hi,

I have to retrieve some data from outlook using a VBA macro in Excel.
According to the documentation this code is supposed to work. But the
outlookApp_AdvancedSearchComplete event never fires. I have run out of
ideas. Any help would be greatly appreciated.


Sub Button1_Click()
Dim outlookApp As New Outlook.Application
Dim objSearch As Outlook.Search

Set objSearch = outlookApp.AdvancedSearch("Tasks")

End Sub

Private Sub outlookApp_AdvancedSearchComplete(SearchObject As Search)
MsgBox 'found something'
End Sub
 
V

VBrogna

Hi,
I have the same problem with a VBA macro. The AdvancedSearchComplete event
never happens; the module is not called by the main code. Can anyone help us
explaining because code is wrong?

Thank you for your attention
Bye

"(e-mail address removed)" ha scritto:
 
S

Sue Mosher [MVP-Outlook]

It's going to be hard to help you without seeing a code snippet.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top