Hi, i need some help. I try to google but see hard for me
In myweeksht;
At Column D
1. Find WPxx And Replace with 'Poster'
2. Find number (the number can be single or double digital) And replace with 'Route'
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Col D[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Col D (Result)[/TD]
[/TR]
[TR]
[TD="align: center"]WP1[/TD]
[TD="align: center"]find WP @ Col D & replace with 'Poster[/TD]
[TD="align: center"]Poster[/TD]
[/TR]
[TR]
[TD="align: center"]WP2[/TD]
[TD="align: center"]''[/TD]
[TD="align: center"]Poster[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Any numbers found @ Col D will replace with 'Route'[/TD]
[TD="align: center"]Route[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Route[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Route[/TD]
[/TR]
</tbody>[/TABLE]
2nd part is
In myweeksht;
At Column E
Find Index and replace Col D to Index
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Col D[/TD]
[TD="align: center"]Col E[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]find Index @ Col E & replace with with 'index' at Col D[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]
[/TR]
</tbody>[/TABLE]
In myweeksht;
At Column D
1. Find WPxx And Replace with 'Poster'
2. Find number (the number can be single or double digital) And replace with 'Route'
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Col D[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Col D (Result)[/TD]
[/TR]
[TR]
[TD="align: center"]WP1[/TD]
[TD="align: center"]find WP @ Col D & replace with 'Poster[/TD]
[TD="align: center"]Poster[/TD]
[/TR]
[TR]
[TD="align: center"]WP2[/TD]
[TD="align: center"]''[/TD]
[TD="align: center"]Poster[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Any numbers found @ Col D will replace with 'Route'[/TD]
[TD="align: center"]Route[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Route[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Route[/TD]
[/TR]
</tbody>[/TABLE]
2nd part is
In myweeksht;
At Column E
Find Index and replace Col D to Index
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]Col D[/TD]
[TD="align: center"]Col E[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]
find Index @ Col E & replace with with 'index' at Col D
[/TD][/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]find Index @ Col E & replace with with 'index' at Col D[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Index[/TD]
[TD="align: center"]
find Index @ Col E & replace with with 'index' at Col D
[/TD][/TR]
</tbody>[/TABLE]
Code:
With Range("Q:Q")
.Replace "Yes", "=xxx", xlWhole, , False, , False, False
.SpecialCells(xlFormulas, xlErrors).FormulaR1C1 = "=rc[-9]"
.Value = .Value
End With
Last edited: