Hi @Robert Barnes ,
You can first replace the smart brackets in the text loaded from Word by using the following method, and then make it appear in the text box.
Function ReplaceSmartQuotes(text As String) As String
Dim replacements As New Dictionary(Of String, String) From {
{"“", """"}, ' Actual Left Double Quote
{"”", """"}, ' Actual Right Double Quote
{"‘", "'"}, ' Actual Left Single Quote
{"’", "'"}, ' Actual Right Single Quote
{"–", "-"}, ' Actual En Dash
{"—", "-"}, ' Actual Em Dash
{"…", "..."}, ' Actual Ellipsis
{"•", "•"}, ' Bullet Point
{"™", "™"}, ' Trademark Symbol
{"'", "'"} ' Apostrophe
}
For Each key As String In replacements.Keys
text = text.Replace(key, replacements(key))
Next
Return text
End Function
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.