afterdinnerspeaker
Board Regular
- Joined
- Jan 10, 2019
- Messages
- 70
Here is my problem:
I’m trying to create a macro to find & replace certainrows of text in an Excel worksheet.
Example:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5710
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Pasture (CLAIM 100%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 536"]
<tbody>[TR]
[TD="width: 38, bgcolor: transparent"] 5710
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Pasture (CLAIM 100%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 26, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5720
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Yard (represents 66.6%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5720
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Yard (figures represent 66.6%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5940
[/TD]
[TD="width: 387, bgcolor: transparent"] Telephone / Landline (rep. 33.3%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5940
[/TD]
[TD="width: 387, bgcolor: transparent"] Telephone / Landline (figures represent 33.3%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Many thanks in advance,
Jerry
I’m trying to create a macro to find & replace certainrows of text in an Excel worksheet.
Example:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5710
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Pasture (CLAIM 100%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 536"]
<tbody>[TR]
[TD="width: 38, bgcolor: transparent"] 5710
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Pasture (CLAIM 100%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 26, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5720
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Yard (represents 66.6%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5720
[/TD]
[TD="width: 387, bgcolor: transparent"] Electric in Yard (figures represent 66.6%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5940
[/TD]
[TD="width: 387, bgcolor: transparent"] Telephone / Landline (rep. 33.3%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Replace with:
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 31, bgcolor: transparent"] 5940
[/TD]
[TD="width: 387, bgcolor: transparent"] Telephone / Landline (figures represent 33.3%)
[/TD]
[TD="width: 89, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"][/TD]
[TD="width: 59, bgcolor: transparent"]
0.00
[TD="width: 19, bgcolor: transparent"] Dr
[/TD]
[/TR]
</tbody>[/TABLE]
Many thanks in advance,
Jerry