
Private Sub TextBox2_AfterUpdate() TextBox2.Value = Format(TextBox2 / 100, "0%") TextBox3 = TextBox1 * TextBox2 / 100 TextBox3 = Format(TextBox3, "#,##0.00") End Sub |
TextBox3.Value = CLng(TextBox1.Value) * CLng(TextBox2.Value) / 100 |
Private Sub TextBox2_AfterUpdate() TextBox3 = CLng(TextBox1) * CLng(TextBox2) / 100 TextBox3 = Format(TextBox3, "#,##0.00") TextBox2.Value = TextBox2.Value & "%" End Sub |
