Why trim is not working in VBA?
for i = 3 to 2000 activesheet.cells(i,\"C\").value = trim(Activesheet.cells(i,\"C\").value) next i
It is un
When you call Trim() VBA is actually calling Strings.Trim(). This function will only remove leading and trailing spaces. To remove excessive spaces within a string, use
Application.Trim()