ermccarthy
Board Regular
- Joined
- Feb 15, 2002
- Messages
- 224
I am struggling..... This is a snippet of a larger code. Trying to delete any ROWS in which the cell in column A is Text. (think isText function on the worksheet).
Any ideas??
VBA Code:
'Declare Variables
Dim LastRow As Long, FirstRow As Long
Dim Row As Long
With ActiveSheet
'Define First and Last Rows
FirstRow = 2
LastRow = .UsedRange.Rows(.UsedRange.Rows.Count).Row
'Loop Through Rows (Bottom to Top)
For Row = LastRow To FirstRow Step -1
If .Range("A" & Row).Value = Application.WorksheetFunction.IsText Then
.Range("A" & Row).EntireRow.Delete
End If
Next Row
End With
Any ideas??