Private Sub Worksheet_Change(ByVal Target As Range)
Dim rCell As Range
Dim lLastrow As Long
With lLastrow = .Range("C65536").End(xlUp).Row
Application.EnableEvents = False
For Each rCell In .Range("I1:I" & lLastrow)
If rCell.Offset(6, 0).Value <> "" Then
rCell.FormulaR1C1 = "=IF(D" & rCell.row & _
"="""","""",(H" & rCell.row & "/G" & rCell.row _
& "))"
End If
Next rCell
Application.EnableEvents = True
End With
End Sub

Signature
Regards,
Tom Ogilvy
> Crowbar via OfficeKB.com Wrote:
> > Dim LastRow As Long
[quoted text clipped - 17 lines]
> I'v played with this for an hour or so. Haven't had any sucess yet,
> will keep trying and post back.
Desert Piranha - 26 Jan 2006 05:56 GMT
Hi Tom,
Thx for replying.
With lLastrow = .Range("C65536").End(xlUp).Row
Error in this line "Range" gets highlighted in blue and says "Invalid
or unqualified reference"
FYI - Column 'C' has Text, Column 'G' and 'H' have numbers
Dave
Tom Ogilvy Wrote:
> Private Sub Worksheet_Change(ByVal Target As Range)
> Dim rCell As Range
[quoted text clipped - 53 lines]
> > View this thread:
> http://www.excelforum.com/showthread.php?threadid=504764

Signature
Desert Piranha