Microsoft Word Replace Text

I am automating the Microsoft Word document by using the replace text activity of UiPath. The design of the document in newspaper format having rows and columns. The text is being replaced with blank values which is my requirement but leaving behind extra spaces between paragraphs as the paragraphs which are being replaced are inside cells of rows. Is there any alternative to delete the entire rows while using the replace text activity, so that no unnecessary spaces are left behind in the document?

Hi @Nikita0811

Before using replace text used the Generated Data Table activity and check the rows and columns based on the datatable and then use Replace text activity

Thanks
Ashwin S