Sometimes when working with what looks like cells that look blank they have hidden "0" in it.
That messes with formulas at times. So I thought to scrub the worksheet for cells with non visible characters and set them all to the same one.
So what I like to know is what state is a new unused cell in IE> blank - zero - other. And how to search for and change everything that is not
in use to that. Kind of like below?
Sub Trim_Zero()
'Trim zeros
ActiveSheet.UsedRange.Replace 0, "", lookat:=xlWhole
ActiveSheet.UsedRange.Replace " ", "", lookat:=xlWhole
End Sub
That messes with formulas at times. So I thought to scrub the worksheet for cells with non visible characters and set them all to the same one.
So what I like to know is what state is a new unused cell in IE> blank - zero - other. And how to search for and change everything that is not
in use to that. Kind of like below?
Sub Trim_Zero()
'Trim zeros
ActiveSheet.UsedRange.Replace 0, "", lookat:=xlWhole
ActiveSheet.UsedRange.Replace " ", "", lookat:=xlWhole
End Sub