I hope this makes sense. I am want to be able to copy a formula to a cell, but I need it to use the next row number.
See below:
The Column won't change, but the row number will change. How can I copy this simple formula to use the active row this is copied too?
Thanks,
SB
See below:
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).Value = "=C9-P9"
.Range("F" & rw).Value = "=C9-Q9"
End With
The Column won't change, but the row number will change. How can I copy this simple formula to use the active row this is copied too?
Thanks,
SB