Exact string comparison of Subject Field in emails

  • Thread starter Thread starter Ron_D
  • Start date Start date
R

Ron_D

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
 
Back
Top