Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Word: select text, search, delete, in a macro, how?
I want to record a macro where I search for the beginning of some text
I'm interested in, select a section of text, search for the end of the text I'm interested in, and then delete the resulting selection. The trouble is that the section can vary in size. For example, I would want to delete everything between div and /div: div id="productdetails" table border="0" cellspacing="0" cellpadding="0" tr td class="header" colspan="2"Product Details/td /tr tr valign="top" td class="fieldlabel" nowrap="1"Dewey/td td class="fieldvalue"813/td /tr tr valign="top" td class="fieldlabel" nowrap="1"Format/td td class="fieldvalue"Paperback/td /tr tr valign="top" td class="fieldlabel" nowrap="1"Cover Price/td td class="fieldvalue"$1.99/td /tr tr valign="top" td class="fieldlabel" nowrap="1"No. of Pages/td td class="fieldvalue"352/td /tr tr valign="top" td class="fieldlabel" nowrap="1"Height x Width/td td class="fieldvalue" font size="+0"192 x 126 mm /font /td /tr /table /div The trouble I find with Word is that I can't seem to mark the beginning of the text I'm interested in, search for the end, and then delete that section. I need to do this with keystrokes as I record the steps for a macro. Can anyone help? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Use mouse to select text in MS Word macro recorder. | Page Layout | |||
Select text in macro | New Users | |||
When i select text i can't write over it or delete it. | Microsoft Word Help | |||
Can't select text and delete with backspace or replace with text | Microsoft Word Help | |||
How do I write a macro to find, select, and then delete a Section. | Microsoft Word Help |