Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how can I delete cells containing text within a range of cells

EXCEL 2003
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADD A BUTTON TO A CELL TO DELETE A RANGE OF CELLS? traveye Excel Discussion (Misc queries) 5 November 5th 07 12:57 PM
delete all empty cells in a range Gary Excel Worksheet Functions 2 February 8th 07 09:09 PM
Need macro to delete all text cells in an Excel range GVT Excel Worksheet Functions 2 February 26th 06 12:25 PM
How do I delete text to right of a comma in a range of cells? Mike M. Excel Discussion (Misc queries) 2 January 14th 06 06:24 PM
How do you delete one cell from a range of protected cells Cgbilliar Excel Worksheet Functions 2 November 3rd 04 10:42 PM


All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"