AdvancedSearch never Complete

Chooriang

Member
Outlook version
Outlook 2010 64 bit
Email Account
Outlook.com (as MS Exchange)
Hi,
I have following code in this outlook session
Code:
Public searchComplete As Boolean

Private Sub Application_AdvancedSearchComplete(ByVal SearchObject As Search)
    MsgBox "Completed"
    searchComplete = True
End Sub

And I have some code in below module
Code:
    searchComplete = False
    Set oSearch = Application.AdvancedSearch(Scope:=strScope, Filter:=strDASLFilter, SearchSubFolders:=True, Tag:="SearchFolder")
    While searchComplete = False
        DoEvents
    Wend
It seems the AdvancedSearch is never complete. I do see the message box but the code continuously loops in the While...Wend, never proceed to the next line.
What's wrong?
 
Thread starter Similar threads Forum Replies Date
P Problem with a Search-Object resulting from an AdvancedSearch Outlook VBA and Custom Forms 2
T AdvancedSearch & PSTs Outlook VBA and Custom Forms 5
H In outlook 365 POP mail Inbox, email takes a long time or never arrives. Using Outlook 1
B Replies never HTML Using Outlook 2
Stompandgo Copied PST file asking for password - but I never created one?! Using Outlook 3
Y Outlook indexing items increasing, indexation never finishes Using Outlook 1
H SETTING UP A "NEW" NEVER HAD NEVER USED EMAIL ACCOUNT Using Outlook 9
J Old problems that never die BCM (Business Contact Manager) 0
D Junk setting do not respond to "Never Block Sender Using Outlook 3
H Message in outbox but never is sent and unable to delete because it's in the process of sending already. Using Outlook 3
H Reminder never pops up in Outlook 2003 Calendar Using Outlook 1
G Outlook 2010 won't re-open (or rather, never really closes) in Windows 7 Using Outlook 1
B I lost everything in Outlook 2007-It is like I never had anything in there Using Outlook 2
J Problem with reading Outlook reminders. Reminders never work anymore. Using Outlook 1
T Outlook 2007 Send/Recieve never completes 1 of 3 tasks Using Outlook 7
M I can receive emails. I reply or create a new e-mail and outlook shows it was successfully sent to the recipient. HOwever, the recipient never receive Using Outlook 2
Y popup asks me to enter network password on popserver. i never had to do this before. can't receive emails Using Outlook 1
D I have a new Dell Notebook, OS Windows 7 and Outlook 2010. When I send an email it shows as being sent, but it never arrives anywhere. Using Outlook 1
V I keep getting error messages about undeliverable e-mail I never sent to begin with. Using Outlook 2
I Outlook Connector 14.1 will never connect to a server Using Outlook 2
C Outlook sends mail from word, but never gets to recipient Using Outlook 3
P Receiving multiple Mail Delivery System Errors. (Never sent email) Using Outlook 3
C Font size changes in Outlook 2003 when I click Forward. It has never done this before.........just Using Outlook 1
R Mail will not delete. A line is drawn through but it never goes away... Using Outlook 1
J Getting reminders in Outlook BCM that were never set Using Outlook 1
S Outlook 2010 "update in Progress" never stops Using Outlook 1
T When I scan a document to Word (some multipage docs) then try to email the document as an attachment, the email never leaves my Outbox. Using Outlook 2
J In Outlook 2010 selecting the Junk drop down for a message & then "Never block..." fails to add entr Using Outlook 7
J Upgrade in progress never ends Using Outlook 2
M Emails stuck in outbox have upgraded from Outlook 2007 to 2010 and the same problem exists. Never had this problem with Outlook 2003. Using Outlook 2
T I can't receive emails on my iPhone while my home computer is logged on and Outlook 10 is open. This has never been a problem before .. just since in Using Outlook 2
T Cannot Get Outlook 2010 to run - can never get past the 'Cannot start Microsoft Outlook. Cannot open the Outlook window' Using Outlook 2
I I am trying to turn off an auto-reply function from my email that I had never set up Using Outlook 2
E Resource mailbox never mails delegates Exchange Server Administration 4
A Oulook 2007/2003 with Outlook Connector Never Closes properly .. Using Outlook 5
J Edit auto-complete list in Outlook 2016+/365? Using Outlook 0
S Codes for "Mark Complete" the task Outlook VBA and Custom Forms 2
T Have Outlook 2016 suggest email address auto complete entries directly from the user's contacts list Using Outlook 10
T Have Outlook 2016 suggest email address auto complete entries directly from the user's contacts list Using Outlook 0
N Auto-complete - block select emails Using Outlook 3
Commodore Search cannot complete the indexing of your Outlook data Using Outlook 6
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Could not complete the operation. One or more parameter values are not valid. New Slipstick.com Articles 0
M Mark Complete keyboard shortcut... on a mac running Windows Bootcamp Using Outlook 0
K Outlook 2013 Recurring Tasks Not Showing Complete Outlook.com Using Outlook.com accounts in Outlook 1
P Is it possible to convert address book to "Auto-Complete List" (NK2)? Using Outlook 5
Christiaan Could not complete operation because the service provider does not support it Using Outlook 2
T Adding "Mark As Complete" btton to Task Remindet Pop-Up Using Outlook 3
Diane Poremsky Calculate Days Overdue and Days to Complete Tasks New Slipstick.com Articles 0
A Shortcut for sending complete mail Using Outlook 1
Similar threads


















































Top