Word Template text delete issue

Hi

I have a requirement where I have a template and i need to find some text and replace the same and there are some text that I need to remove based on business logic.

While using UiPath word activities, there’s no remove text activity. So if I use a replace text, it will insert a blank line after removing the text. This shouldn’t happen??

How can I resolve this??

Hi @Gautham_r,

Please use VB code to replace you text. you should have to mix and match the code until you get your desired solution.

Please refer to the doc link