O
Oggy
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?
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?