This is the round about way how I fixed this. I kept bbtest6, then I recorded a macro that replaces "Desig" with "Design-Build" but then another problem happens because the other Design-Builds get altered to "Design-Buildn-Build" so then I replace Design-Buildn-Build with "Design-Build". This is a random way to fix this problem. Here is the code:
Should we add this into the main code or find another solution?
Sub ReplaceDesign()
' ReplaceDesign Macro
'
Cells.Find(What:="N/A" & Chr(10) & "Desig", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Cells.Find(What:="N/A" & Chr(10) & "Desig", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Cells.Replace What:="N/A" & Chr(10) & "Desig", Replacement:="N/A" & Chr(10) & "Design-Build", LookAt _
:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Cells.Replace What:="N/ADesign-Buildn-Build", Replacement:= _
"N/A" & Chr(10) & "Design-Build", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:= _
False, SearchFormat:=False, ReplaceFormat:=False
Cells.Find(What:="N/A" & Chr(10) & "Design-Buildn-Build", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Cells.Replace What:="N/A" & Chr(10) & "Design-Buildn-Build", Replacement:= _
"N/A" & Chr(10) & "Design-Build", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:= _
False, SearchFormat:=False, ReplaceFormat:=False
End Sub
Bookmarks