通过Excel VBA对Outlook进行高级搜索
我正试图通过Excel VBA在我的邮箱中执行高级搜索,但我不知道如何进行不区分大小写的搜索。 这是我的过滤器:通过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
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”(选项比较文本)将允许您在任何情况下进行搜索和查找。试试看它是否能解决问题