I am attempting to write to a cell in excel. I have done this numerous times in this particular program that I am writing...but for some reason out of no where it says object out of range....
Sheets("CASEINPUTS"
.Select
If Cells(249, casenum + 2).Value <> 0 Then
Range("DBUSED"
.Value = Cells(249, casenum + 2)
Range("DBUSEDQUICK"
.Value = Cells(249, casenum + 2)
Range("CASEDATA"
.Value = Cells(248, casenum + 2)
Else
Range("DBUSED"
.Value = "NONE"
Range("DBUSEDQUICK"
.Value = "NONE"
End If
I am attempting to write to dbused and dbusedquick, but keeps coming with out of range for only dbusedquick??? any ideas what possibly could of went wrong?
Sheets("CASEINPUTS"

If Cells(249, casenum + 2).Value <> 0 Then
Range("DBUSED"

Range("DBUSEDQUICK"

Range("CASEDATA"

Else
Range("DBUSED"

Range("DBUSEDQUICK"

End If
I am attempting to write to dbused and dbusedquick, but keeps coming with out of range for only dbusedquick??? any ideas what possibly could of went wrong?