I need help with a VBA script. Our teacher has told us to use:
ListBox1.AddItem ComboBox1.Text And Val(TextBox4.text) And ListBox1.AddItem
FormatCurrency(price, 2)
It is supposed to show both the name from ComboBox1, the quantity from TextBox4 and price from TextBox5 (formatted into 'price' variable) but it gives me an error.
I decided to try to use:
ListBox1.AddItem ComboBox1.Text
ListBox1.AddItem Val(TextBox4.Text)
ListBox1.AddItem FormatCurrency(price, 2)
But the result is this:

Where as it is supposed to be one next to the other (mew 1 £3.50), instead of one above the other.


&:)&example.