Sub CleanUp() Dim TheCell As Range For Each TheCell In ActiveSheet.UsedRange With TheCell If .HasFormula = False Then .Value = Application.WorksheetFunction.Clean(.Value) End If End With Next TheCell End Sub
Tuesday, September 28, 2004
VB to strip carriage returns from cells in an Excel file
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment