![]() |
| 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. |
|
|||||||
| Tags: comparison, emails, exact, field, string, subject |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Good morning,
The built-in Rules wizard in Outlook doesn't look for differences between upper/lower case letters. So I'm trying to create VBA codes that will look at a subject of an email and compare it to what it should be. I'm trying to use the exact function, because I'm familiar with that in Excel. But in Outlook I'm getting an error. Code: if Exact(Text)="THIS is THE Text" then ' do something end if |
| Ads |
|
#2
|
|||
|
|||
|
It would be simply:
if Text="THIS is THE Text" then -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Ron_D" wrote: Good morning, The built-in Rules wizard in Outlook doesn't look for differences between upper/lower case letters. So I'm trying to create VBA codes that will look at a subject of an email and compare it to what it should be. I'm trying to use the exact function, because I'm familiar with that in Excel. But in Outlook I'm getting an error. Code: if Exact(Text)="THIS is THE Text" then ' do something end if |
|
#3
|
|||
|
|||
|
Thank you, Sue, for all your help!!! That did the trick.
"Sue Mosher [MVP-Outlook]" wrote: It would be simply: if Text="THIS is THE Text" then -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Ron_D" wrote: Good morning, The built-in Rules wizard in Outlook doesn't look for differences between upper/lower case letters. So I'm trying to create VBA codes that will look at a subject of an email and compare it to what it should be. I'm trying to use the exact function, because I'm familiar with that in Excel. But in Outlook I'm getting an error. Code: if Exact(Text)="THIS is THE Text" then ' do something end if |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook Form and the Subject Field | roblowein | Outlook - General Queries | 1 | January 4th 07 05:30 PM |
| Automatic Text in Subject Field | Dries Goossens | Outlook and VBA | 1 | October 10th 06 07:58 AM |
| Edit Subject Field | Meeme | Outlook - Calandaring | 2 | April 18th 06 02:59 PM |
| Need String from Email Subject | CondtllyFrmttd | Outlook and VBA | 1 | January 25th 06 05:26 PM |
| Use Part of Subject as String | CondtllyFrmttd | Outlook - General Queries | 0 | January 23rd 06 07:57 PM |