VBA - Find string in email body or subject
问题 I am trying to create a simple macro, which reads the active email and checks whether or not a certain string is present. Now, the string can have two possible formats, and will only contains digits. The two formats: xxx-xxxxxxxx or xxxxxxxxxxx (x will always be a digit) I am unsure on how to do this. Below I have a macro, which reads the mail - but it can only find a specific string : Sub AutomateReplyWithSearchString() Dim myInspector As Outlook.Inspector Dim myObject As Object Dim myItem