Hello, i just want to insert the currency symbol in textbox, however there's a formula on it:
Ex: If Combobox1 is GBP, when i type a number in textbox1 for example "100", input will be "100 £" and textbox2 will be "155 $".
Currency symbol:
EUR = €
GBP = £
USD = $
DKK = kr
NOK = kr
Textbox1 will be Local Currency and Textbox2 will be conversion amount in USD.
![]()
Private Sub TextBox1_Change() If ComboBox1.Value = "USD" Then TextBox2.Value = (TextBox1.Value * 1) Exit Sub End If If ComboBox1.Value = "GBP" Then TextBox2.Value = (TextBox1.Value * 1.55) Exit Sub End If If ComboBox1.Value = "EUR" Then TextBox2.Value = (TextBox1.Value * 1.3) Exit Sub End If If ComboBox1.Value = "DKK" Then TextBox2.Value = (TextBox1.Value * 0.174882) Exit Sub End If If ComboBox1.Value = "NOK" Then TextBox2.Value = (TextBox1.Value * 0.167815) Exit Sub End If End Sub Private Sub UserForm_Click() End Sub Private Sub UserForm_Initialize() With ComboBox1 .AddItem "GBP" .AddItem "EUR" .AddItem "USD" .AddItem "DKK" .AddItem "NOK" End With End Sub
Bookmarks