How to extract last email ID from the To email list in outlook

Hi, I want to extract last email ID from the To email list in outlook and save it in variable.

Hi ,

If i am not wrong , you need the last email id from TO List like (123@gmail.com,234@gmail.com you need the second one)

addressTO.ToString.Split(";"c)(addressTO.ToString.Split(";"c).Length-1)

In My Case ";" is been separator in between the mails, you can alter as per your need

image

Thank you it worked for me.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.