Function HexToLong(ByVal sHex As String) As Long
HexToLong = Val("&H" & sHex & "&")
End Function
Private Sub txtDecimal_Change()
txtHexadecimal.Text = Hex(CLng(txtDecimal.Text))
End Sub
Private Sub txtHexadecimal_Change()
'txtDecimal.Text = CLng("&h" & txtHexadecimal.Text)
'Val
txtDecimal.Text = HexToLong(txtHexadecimal.Text)