Need macro to delete all text cells in an Excel range
Enter:
Sub textclear()
' gsnu
Dim r As Range
For Each r In Selection
If r.Application.IsNumber(r.Value) Then
Else
r.Value = ""
End If
Next
End Sub
Select an area of the worksheet and run the macro.
--
Gary's Student
"GVT" wrote:
When I import a table from another program into Excel, the blank cells in the
original program look blank, but Excel imports them as text. I need help
writing a macro that will identify the cells that contain text and delete
their contents.
|