Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过Excel VBA对Outlook进行高级搜索_Vba_Excel - Fatal编程技术网

通过Excel VBA对Outlook进行高级搜索

通过Excel VBA对Outlook进行高级搜索,vba,excel,Vba,Excel,我正试图通过Excel VBA在我的邮箱中执行高级搜索,但我不知道如何进行不区分大小写的搜索。 这是我的过滤器: Filter = "urn:schemas:httpmail:subject LIKE '%Pending%'" & _ "AND urn:schemas:httpmail:textdescription LIKE '%" & ISIN & "%'" & _ "AND urn:schemas:httpmail:text

我正试图通过Excel VBA在我的邮箱中执行高级搜索,但我不知道如何进行不区分大小写的搜索。 这是我的过滤器:

       Filter = "urn:schemas:httpmail:subject LIKE '%Pending%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & ISIN & "%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & StlDate & "%'"
我试过使用这个过滤器,但不起作用。我找不到主题中带有“待定”的电子邮件。我还尝试使用此过滤器:

 Filter = "(urn:schemas:httpmail:subject LIKE '%Pending%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & ISIN & "%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & StlDate & "%' ) OR " & _
     "(urn:schemas:httpmail:subject LIKE '%PENDING%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & ISIN & "%'" & _
     "AND urn:schemas:httpmail:textdescription LIKE '%" & StlDate & "%' ) "
在您的sub上面使用“Option Compare Text”(选项比较文本)将允许您在任何情况下进行搜索和查找。试试看它是否能解决问题