is it possible to extract a specific part of the mail subject and use it in the QuickParts in Outlook?
You need to find the position of the string in this case first:
position = InStr(StringToSearch, StringToFind)
Then use Left
to cut the string:
Result = Left(StringToSearch, position -1)
Or just start from the end:
Result = Right(StringToSearch, position)
The Outlook object model provides three main ways for working item bodies:
Body
- a string representing the clear-text body of the Outlook item. HTMLBody
- a string representing the HTML body of the specified item. Word editor
- the Microsoft Word Document Object Model of the message being displayed. The WordEditor property of the Inspector class returns an instance of the Document class from the Word object model which you can use to set up the message body. You can read more about all these ways in the Chapter 17: Working with Item Bodies article. It is up to you which way is to choose to customize the signature in the message body.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.