ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   delete all the cell that contains more than 25 characters (https://www.excelbanter.com/excel-discussion-misc-queries/92396-delete-all-cell-contains-more-than-25-characters.html)

[email protected]

delete all the cell that contains more than 25 characters
 
Does any one know how to do this???
Cheers,
elaine.


Gary''s Student

delete all the cell that contains more than 25 characters
 
Enter and run this small macro:


Sub long_clearer()
Dim r As Range
For Each r In ActiveSheet.UsedRange
If Len(r.Value) 25 Then
r.Clear
End If
Next
End Sub

--
Gary's Student


" wrote:

Does any one know how to do this???
Cheers,
elaine.



[email protected]

delete all the cell that contains more than 25 characters
 
Thank you very much!

Gary''s Student wrote:
Enter and run this small macro:


Sub long_clearer()
Dim r As Range
For Each r In ActiveSheet.UsedRange
If Len(r.Value) 25 Then
r.Clear
End If
Next
End Sub

--
Gary's Student


" wrote:

Does any one know how to do this???
Cheers,
elaine.





All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com