![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Is there any way to search for an Outlook contact item that has double
quotes in there Name/FileAs field ? The FileAs field has like - Smith, David "Home" Dim fldrs As Outlook.MAPIFolder Dim SearchItem As Outlook.ContactItem ' this assignment doesn't work in VB as written, but I'm just trying to represent the string ' I'm searching for strSearch = "[FileAs] = "Smith, David "Home"" Set SearchItem = g_fldr.Items.Find(strSearch) |
Ads |
#2
|
|||
|
|||
![]()
Create your search string like this, specifying the ASCII character for the
double-quote and using a single-quote to delimit the value of the field you are searching on. strSearch = "[FileAs]='Smith, David " & Chr(34) & "Home" & Chr(34) & "'" "Dave" wrote in message ... Is there any way to search for an Outlook contact item that has double quotes in there Name/FileAs field ? The FileAs field has like - Smith, David "Home" Dim fldrs As Outlook.MAPIFolder Dim SearchItem As Outlook.ContactItem ' this assignment doesn't work in VB as written, but I'm just trying to represent the string ' I'm searching for strSearch = "[FileAs] = "Smith, David "Home"" Set SearchItem = g_fldr.Items.Find(strSearch) |
#3
|
|||
|
|||
![]()
Thanks, this does work
"Dave Kane [MVP - Outlook]" wrote in message ... Create your search string like this, specifying the ASCII character for the double-quote and using a single-quote to delimit the value of the field you are searching on. strSearch = "[FileAs]='Smith, David " & Chr(34) & "Home" & Chr(34) & "'" "Dave" wrote in message ... Is there any way to search for an Outlook contact item that has double quotes in there Name/FileAs field ? The FileAs field has like - Smith, David "Home" Dim fldrs As Outlook.MAPIFolder Dim SearchItem As Outlook.ContactItem ' this assignment doesn't work in VB as written, but I'm just trying to represent the string ' I'm searching for strSearch = "[FileAs] = "Smith, David "Home"" Set SearchItem = g_fldr.Items.Find(strSearch) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Contact Search | KT | Outlook - Using Contacts | 3 | April 21st 06 10:40 PM |
Cannot search contact by first name without using accent | Minnie | Outlook - Using Contacts | 0 | March 14th 06 03:54 PM |
How can I include quotes around a word in text string? | Maureen | Outlook and VBA | 3 | March 3rd 06 12:10 PM |
Microsoft Outlook closes when I try and open (double-click) a Contact | [email protected] | Outlook - General Queries | 0 | February 28th 06 08:37 PM |
Why can't I find a contact through search? | lostquilt | Outlook - Using Contacts | 4 | January 31st 06 11:53 PM |