View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
alistre alistre is offline
external usenet poster
 
Posts: 7
Default Clearing Non-numerical CellCvalues

Hello, I have a range (D9:DP496) that contains numerical values and
text. I want to clear all the cells that do not have numerical values.
I attempted it below but failed miserably. As you can see I am a new
learner to VBA. Can you help?

If Workbooks("Regional Banks.xls").Worksheets("Regional
Banks").Range("D9:DP496") < Format ("#") Then Cells.Value = ""
End If