Gem
It depends if you are using a button to trigger the update, if not, you
could use something like the textbox_afterupdate event like so (This is very
basic code with little error checking. It uses three text boxes TextBox1
and 2 have the numbers in and 3 shows the result)
Private Sub TextBox1_AfterUpdate()
If TextBox2.Value = "" Then Exit Sub
TextBox3.Value = TextBox1.Value * TextBox2.Value
End Sub
Private Sub TextBox2_AfterUpdate()
If TextBox1.Value = "" Then Exit Sub
TextBox3.Value = TextBox1.Value * TextBox2.Value
End Sub
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
[email protected]