How to trim the spaces in Word Document when replacing the text

@RajeshT, i cannot access my laptop right now, but i wanted to try something, please try it and let me know if it works

use a replace activity right underneath the message box activity, in the search for type in “WordText” and in the replace with type in “TrimWhiteSpace”, make sure the replace activity is inside the word scope.

i am assuming you have not changed my workflow, and the above variables are still valid. Please let me know if that works.

1 Like