Hi,
i want try to change some character in one cell with replace functions in VBA to another cell.
every rows seem ok but at 13th row.
i miss full code. not fully code can't be replace and severed at the end of code.
here is my workbooks.
http://www.filehosting.org/<wbr>file/details/160732/max_text.<wbr>xls
i want try to change some character in one cell with replace functions in VBA to another cell.
every rows seem ok but at 13th row.
i miss full code. not fully code can't be replace and severed at the end of code.
Code:
Dim p As String
Set a = ActiveWorkbook.Sheets("temp")
i = 1
While a.Cells(i, 5).Value <> ""
p = a.Cells(i, 5).Value
p = Replace(p, "+", "|+|", vbTextCompare)
p = Replace(p, "-", "|-", vbTextCompare)
p = Replace(p, "(", "|(|", vbTextCompare)
p = Replace(p, ")", "|)|", vbTextCompare)
p = Replace(p, "!", "!|", vbTextCompare)
p = Replace(p, ";", "|;|", vbTextCompare)
p = Replace(p, "&", "|&|", vbTextCompare)
p = Replace(p, "||", "|", vbTextCompare)
a.Cells(i, 6).Value = "'" & p
i = i + 1
Wend
End Sub
http://www.filehosting.org/<wbr>file/details/160732/max_text.<wbr>xls