View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default Clearing a Cell Value

You can also use ClearContents
If Cells(13, "E").Value = "" And Cells(13, "G").Value = "" Then
Range("P13:T13").ClearContents
End If

What are you having a problem with? There does not appear to be a problem
with the code you posted.

"bumper338" wrote:

I have done something like this before in vba, but when I try it now it is
not working. Here is what I want to do, if a value of cell c1 is < 0.01,
then I want the the value of cell d1 = "".

Here is what I used befo

If Cells(13, "E").Value = "" And Cells(13, "G").Value = "" Then
Range("P13:T13").Value = ""

I realize that the cells here where equal to null, but I thought if the I
used or < that I would get the same result.

Here is what I am trying to use now:
If Cells(28, "P").Value < 43 Then
Range("Q29:Q30").Value = ""

Any suggestions?

Thanks in advance