How would i write the following calculation in VBA. I have a form set up and would like textbox10 to calculate the following.
If ComboBox1 ="Support or Police" and ComBoBox2 ="Business"
Then
=(((ComboBox3.Value/12*4.085%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
If ComboBox1 ="Support or Police" and ComBoBox2 ="Standard"
Then
=(((ComboBox3.Value/12*4.585%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
If ComboBox1 ="Support or Police" and ComBoBox2 ="Standard £15K"
Then
=(((ComboBox3.Value/12*4.43%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
I also need to display to two decimal places and use the £ sign
If ComboBox1 ="Support or Police" and ComBoBox2 ="Business"
Then
=(((ComboBox3.Value/12*4.085%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
If ComboBox1 ="Support or Police" and ComBoBox2 ="Standard"
Then
=(((ComboBox3.Value/12*4.585%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
If ComboBox1 ="Support or Police" and ComBoBox2 ="Standard £15K"
Then
=(((ComboBox3.Value/12*4.43%*TextBox4.Value)+(TextBox4.Value))/(ComboBox3.value))
I also need to display to two decimal places and use the £ sign