C
celia
Can I change the code below so that it would auto-remove whenever there
are spaces and don't have to run macro everytime? I think can code
somthing to the change event of the worksheet, how to modify?
Sub RemoveAllSpaces()
**Application.ScreenUpdating = False
**Application.Calculation = xlCalculationManual
Range("A14:A50").SpecialCells(xlConstants).Replace
What:=Chr(32), _
Replacement:="", _
LookAt:=xlPart, SearchOrder:=xlByColumns, MatchCase:=True
**Application.Calculation = xlCalculationAutomatic
**Application.ScreenUpdating = True
End Sub
what is the meaning of the line of code with **, can someone explain a
bit? Can I exclude those codes?
thanks for any help.
Thanks,
celia
are spaces and don't have to run macro everytime? I think can code
somthing to the change event of the worksheet, how to modify?
Sub RemoveAllSpaces()
**Application.ScreenUpdating = False
**Application.Calculation = xlCalculationManual
Range("A14:A50").SpecialCells(xlConstants).Replace
What:=Chr(32), _
Replacement:="", _
LookAt:=xlPart, SearchOrder:=xlByColumns, MatchCase:=True
**Application.Calculation = xlCalculationAutomatic
**Application.ScreenUpdating = True
End Sub
what is the meaning of the line of code with **, can someone explain a
bit? Can I exclude those codes?
thanks for any help.
Thanks,
celia