AdvancedSearch never Complete

Status
Not open for further replies.

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?
 
Status
Not open for further replies.
Similar threads
Thread starter Title 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
V Auto-complete stopped working Using Outlook 4
P auto-complete is hopelessly broken Using Outlook 0
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. Using Outlook 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 Using Outlook 0
A Shortcut for sending complete mail Using Outlook 1
S Microsoft office Cannot complete operation error Outlook VBA and Custom Forms 1
2 Task has a strike through but is not complete - how to remove? Using Outlook 1
J Exchange user showing in auto-complete Exchange Server Administration 10
C Required VBA code to complete task when replied to Outlook VBA and Custom Forms 2
S Auto Complete incorrect after changing an email address Using Outlook 3
P Complete destroy all locally stored iCloud and Outlook data Using Outlook 2
G Address names auto complete not working - Outlook 2007 version Using Outlook 1
P How to delete email addresses from auto-complete list? Using Outlook 2
M How do I link a drop down box to a percent complete box Using Outlook 4
B Marked Complete Rule Using Outlook 0
I Auto Complete disappears every time a user logs out Using Outlook 1
R Outlook download will not complete. Using Outlook 1
T Autocomplete, although enabled, does not complete names in TO: Using Outlook 4
R could not complete your last action or actions BCM (Business Contact Manager) 2
S BCM Not Able to Complete Task - Window won't Clear BCM (Business Contact Manager) 1
M Got error message when sending email:Could not complete the operat Outlook VBA and Custom Forms 1
L reported error (ox80070057)could not complete Outlook VBA and Custom Forms 1

Similar threads

Top