Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Would this idea work for you? Not sure if you want to test formulas for
text though, but it's included. Sub Demo() Dim Rng As Range 'Use Column A to determine range of Column D Set Rng = Range([A1], [A12000].End(xlUp)).Offset(0, 3) On Error Resume Next Rng.SpecialCells(xlCellTypeConstants, xlTextValues).EntireRow.Delete Rng.SpecialCells(xlCellTypeFormulas, xlTextValues).EntireRow.Delete ActiveSheet.UsedRange End Sub -- Dana DeLouis Using Windows XP & Office XP = = = = = = = = = = = = = = = = = "Ed" wrote in message ... I'm trying to have this piece of code delete rows that non-numeric. I thought this would work but it does not run. Any ideas or other options? T.I.A. Sub Step08_Non_Ship() Dim LastRow As Long Dim i As Long LastRow = Range("A12000").End(xlUp).Row For i = LastRow To 1 Step -1 If IsText(Range("D" & i).Value) Then Range("A" & i).EntireRow.Delete End If Next 'i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using TEXT and &TEXT - display numbers with commas, underline text | Excel Discussion (Misc queries) | |||
Sumif text is contained winthin a longer text string in a cell | Excel Worksheet Functions | |||
Text does not display in "Text boxs" and when wrapping text in a c | Excel Discussion (Misc queries) | |||
Counting a mixed text/number column based on text in another colum | Excel Discussion (Misc queries) | |||
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' | Excel Programming |