PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming MAPIFolder.Items.Find - single and double quotes in mail subject

Reply

MAPIFolder.Items.Find - single and double quotes in mail subject

 
Thread Tools Rate Thread
Old 10-08-2004, 09:57 AM   #1
=?Utf-8?B?UGF2ZWw=?=
Guest
 
Posts: n/a
Default MAPIFolder.Items.Find - single and double quotes in mail subject


Hi,

How to use Find method for MailItems with single and/or double quotes in
mail subject.

I need to code something like this:
x.Items.find([Subject] = "find with this "message" won't work")

Thanks,
Pavel


  Reply With Quote
Old 11-08-2004, 03:57 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: MAPIFolder.Items.Find - single and double quotes in mail subject

Double up the double-quotes.

x.Items.find("[Subject] = ""message""")

See http://support.microsoft.com/?id=291161 for the ways to use
Find/Restrict with quotes and dates and so on.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Pavel" <Pavel@discussions.microsoft.com> wrote in message
news:4DAEC0AE-4407-4964-B92A-6634C6836D28@microsoft.com...
> Hi,
>
> How to use Find method for MailItems with single and/or double quotes in
> mail subject.
>
> I need to code something like this:
> x.Items.find([Subject] = "find with this "message" won't work")
>
> Thanks,
> Pavel
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off