PresidentEvil
New Member
- Joined
- Jan 2, 2021
- Messages
- 34
- Office Version
- 2021
- 2016
- Platform
- Windows
Hi,
I have been working on a VBA macro in outlook that takes input from user and update the excel sheet with the user inputs along with the email subject line and body.
Emails are not in a specific format. Subject line and body (ofcourse) are dynamic.
I want something that can fetch the data from the subject line data that is saved in excel sheet.
Let's say, I have subject line as "Hello, this is a test xxxxxxxxxxWCxx"
I want to extract that last part highlighted (let's call it ID for now) into new row.
This ID can be anywhere in the subject, maybe in the middle or at the beginning or at the end (just like example above). There is also a possibility of having hyphen in that ID. Ex: xxxxx-xxxxx-WC-xx
Can someone please help me with a formula to extract this ID? I tried Right, left and mid formula, but it won't always work.
Any help is highly appreciated!
I have been working on a VBA macro in outlook that takes input from user and update the excel sheet with the user inputs along with the email subject line and body.
Emails are not in a specific format. Subject line and body (ofcourse) are dynamic.
I want something that can fetch the data from the subject line data that is saved in excel sheet.
Let's say, I have subject line as "Hello, this is a test xxxxxxxxxxWCxx"
I want to extract that last part highlighted (let's call it ID for now) into new row.
This ID can be anywhere in the subject, maybe in the middle or at the beginning or at the end (just like example above). There is also a possibility of having hyphen in that ID. Ex: xxxxx-xxxxx-WC-xx
Can someone please help me with a formula to extract this ID? I tried Right, left and mid formula, but it won't always work.
Any help is highly appreciated!