I am trying to write a value of 0.00 to a cell, (Per Textbox2) but it keeps skipping over the value and not writing anything in the cell. I tried stopping the code and it shows up as .000 per the textbox2, but it jumps to the end of the statement. If I add a value of .001 it works, but 0 doesn't. What would cause this?
Code:
If TextBox1 = Enabled And TextBox2 = Enabled Then
With Sheets("Sheet1")
rw = .Range("B" & .Rows.Count).End(xlUp).Row + 1
.Range("P" & rw).Value = TextBox1
.Range("Q" & rw).Value = TextBox2
.Range("E" & rw).FormulaR1C1 = "=RC[-2]-RC[11]"
.Range("F" & rw).FormulaR1C1 = "=RC[-3]+RC[11]"
End With
ElseIf TextBox3 = Enabled And TextBox4 = Enabled Then
With Sheets("Sheet1")
rw = .Range("B" & .Rows.Count).End(xlUp).Row + 1
.Range("F" & rw).Value = TextBox4
.Range("E" & rw).Value = TextBox3
End With
ElseIf Sym = Enabled Then
With Sheets("Sheet1")
rw = .Range("B" & .Rows.Count).End(xlUp).Row + 1
.Range("D" & rw).Value = Sym
End With
End If