![]() Sub SomeSub()ĭim StartWord As String, EndWord As Stringĭim Find1stRange As Range, FindEndRange As Rangeĭim DelRange As Range, DelStartRange As Range, DelEndRange As Range The Script below will search for your your two keys words and select the range from the Start of the first key word to the end of the second key word. Myrange.End = myrange.End + InStr(myrange, "This message has been scanned ") ' this will initiate the end word Execute findtext:="From: Forward:=True, Wrap:=wdFindStop 'this will initiate the start word Program below does all of what I am looking for, except it is not able to loop through the document and do it to other messages with the same start and end position. If the word is situated within a paragraph, I would like to delete the paragraph. I need a program that can find these key words and dedicate them as the start words and then an end word as the end position and to delete all the text in between them. ![]() I have a huge text extract of about 1 million plus words and I want create a VBA Script which will delete all the unwanted text.įortunately I have the key words to look for and delete all the text after those key words up to a specific end point which I would like to enter. One word of warning: Removing hidden text could displace other text, so be sure to look the document over well before distributing.How can one go about deleting text between a start word and an end word. If you change your mind, just press +Z to retrieve the deleted text. Click Replace All and Word will delete any text to which you’ve applied the Hidden format.Click the Format button and then choose Font from the resulting menu.To remove all hidden text in a document, do the following: Viewing all the hidden text can be helpful, but it won’t remove it. Show/Hide is a toggle, so a second click rehides all the hidden text when you’re ready to put it out of sight. Or click Show/Hide on the Standard toolbar - t’s faster. ![]() Uncheck the Hidden option to display hidden text. Check the Hidden option in the Effects section.Unfortunately, it’s easy to forget that the hidden text is there - it’s hidden, after all! If you’re in the habit of hiding text, you might want to enhance that habit a bit by adding a final step: Remove that hidden text before you distribute the document.īefore you can find hidden text, you have to have hidden text to remove. ![]() Sometimes, it’s more efficient to hide it from others, when you know you’ll need to refer to it later. Now, you might be wondering why you wouldn’t just delete the text rather than hide it. You can hide anything, but most likely, you’ll hide confidential or otherwise sensitive data. Learn how to remove hidden text from a Word document. How to quickly remove all hidden text in Word ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |