i have problem with .Replace() function in VBA, it doesnt give me any error but it doesnt do the job. Here is the code:
MsgBox Wb3.Name
Wb3.Worksheets(1).Columns("B").Replace _
What:="-", Replacement:="", _
SearchOrder:=xlByColumns, MatchCase:=True
Here is table in which function needs to remove "-" before values
Am i doing something wrong?
WORKING SOLUTION:
I was missing "LookAt:=xlPart"
Wb3.Worksheets(1).Columns("B").Replace _
What:="-", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=True
