View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
LoveCandle[_38_] LoveCandle[_38_] is offline
external usenet poster
 
Posts: 1
Default Getting 0 instead or blank cells


After many tries I got the following code:


Code:
--------------------
Private Sub Worksheet_Change(ByVal Target As Range)

Dim MyRange As Range
Dim Cell As Range

Set MyRange = [D5:E11]
For Each Cell In MyRange
If Cell = "" Then Cell = 0
Next Cell

End Sub
--------------------


--
LoveCandle
------------------------------------------------------------------------
LoveCandle's Profile: http://www.excelforum.com/member.php...o&userid=28612
View this thread: http://www.excelforum.com/showthread...hreadid=568578