Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
CLEAN on whole Worksheet
Hi guys/Girls
Is there a way to apply the CLEAN function to an entire worksheet? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
CLEAN on whole Worksheet
Public Sub Test()
Dim cell As Range For Each cell In ActiveSheet.UsedRange If Not cell.HasFormula Then cell.Value = Application.Clean(cell.Value) End If Next cell End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Gareth - Network analyst." wrote in message ... Hi guys/Girls Is there a way to apply the CLEAN function to an entire worksheet? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
CLEAN on whole Worksheet
Select the cells you want to clean and run:
Sub doit() For Each r In Selection If Application.WorksheetFunction.IsText(r) Then r.Value = Application.WorksheetFunction.Clean(r.Value) End If Next End Sub -- Gary''s Student - gsnu200753 "Gareth - Network analyst." wrote: Hi guys/Girls Is there a way to apply the CLEAN function to an entire worksheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Trim and clean | Excel Discussion (Misc queries) | |||
Clean Up Data | Excel Discussion (Misc queries) | |||
End of run 'clean up" . . . | Excel Discussion (Misc queries) | |||
CLEAN Formula | Excel Worksheet Functions | |||
Clean lines | Charts and Charting in Excel |