ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how can I delete cells containing text within a range of cells (https://www.excelbanter.com/excel-discussion-misc-queries/190275-how-can-i-delete-cells-containing-text-within-range-cells.html)

jackwmbg

how can I delete cells containing text within a range of cells
 
EXCEL 2003

Gary''s Student

how can I delete cells containing text within a range of cells
 
Try this small macro:

Sub cleantext()
For Each r In ActiveSheet.UsedRange.SpecialCells(xlCellTypeConst ants)
If IsNumeric(r) Then
Else
r.Clear
End If
Next
End Sub

--
Gary''s Student - gsnu200790


"jackwmbg" wrote:

EXCEL 2003


Gord Dibben

how can I delete cells containing text within a range of cells
 
F5SpecialConstants. Checkmark in "Text" and OK.

EditDelete


Gord Dibben MS Excel MVP

On Fri, 6 Jun 2008 04:49:01 -0700, jackwmbg
wrote:

EXCEL 2003




All times are GMT +1. The time now is 05:35 AM.

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