#1
|
|||
|
|||
Deleteing specific text in word document
Hi,
I have a document with more than 80 pages. These are my summary from kindle books. Is it possible to delete all the instances of the following text. 1) You have 91 highlighted passages 2) You have 0 notes 3) • Delete this highlight • Undo deletion 4) B000SEI4V0 53792 Note: Add a note 5) Read more at location 358 Please note that numbers or text in green color will vary throughout the document. Sometimes in a document; there is more than one space between the parapgrahs; I mean line spacing. Can we reduce it to one by using macro? |
#2
|
||||
|
||||
Hi umesh,
You can do that quite simply with a series of wildcard Find/Replace actions. For example: Find = You have [0-9]{1,} highlighted passages Replace = nothing Find = You have [0-9]{1,} notes Replace = nothing Find = • Delete this highlight • Undo deletion Replace = nothing Find = B000?@: Add a note Replace = nothing Find = Read more at location [0-9]{1,} Replace = nothing You could use the macro recorder to capture these as a macro. Likewise with the paragraph spacing: Find = ^13{2,} Replace = ^p
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete specific text | Jackson | Word VBA | 16 | 12-06-2019 08:24 PM |
Using Hyperlink to open Word Document at Specific Header | rossi45 | Word | 2 | 05-04-2012 06:03 PM |
how to transfer multiple excel cells into specific place in word document by formulas | anton | Excel | 1 | 12-20-2011 03:56 AM |
Need help extracting specific text from one doument to another with macro/VBA. | zsmithku | Word | 1 | 04-15-2011 03:46 PM |
Setting focus to specific word document from UserForm | SaneMan | Word VBA | 5 | 04-01-2011 03:11 PM |