![]() Text = Replace(.Text, strText, strReplacement)įor e.g. 'strReplacement = InputBox("Enter the text to be used for the replacement", "Find and replace long text") StrReplacement = "" 'Use this command to delete the instances of the selected text Here is the code I took from Sub Remove_text() But the Macro is also removing the styles in the document. So, I looked in the internet and found the following code which helped me to delete the copied text from the document. But if I want to search for a text which has line breaks, ctrl+h does not work. ![]() With ctrl+h I am able to find and replace text up to 255 characters. I would like to find and replace long blocks of text with line breaks in Microsoft Word. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |