Morning everyone,
I'm looking for a little advice if anyone has any suggestions.
I have a very basic vba form with two TextBox's and a button. The user enters a floor area in the first textbox and this change determines the value that excel places in the second. The button simply pastes the value in the second box onto a spreadsheet. I’m using if statements to calculate the value i.e
but I’m having issues with punctuation. Excel treats 1500 differently to 1,500. What would be the best way to overcome this. Should I check for punctuation and then remove it? Obviously the simplest solution is to just tell people not to use “ , “ but unfortunately people vary rarely read instructions lol
Any help greatly appreciated
Many Thanks
I'm looking for a little advice if anyone has any suggestions.
I have a very basic vba form with two TextBox's and a button. The user enters a floor area in the first textbox and this change determines the value that excel places in the second. The button simply pastes the value in the second box onto a spreadsheet. I’m using if statements to calculate the value i.e
Code:
If x = 0 Then
TextBox2.Value = "0"
ElseIf x <= 99 Then
TextBox2.Value = "150.00"
but I’m having issues with punctuation. Excel treats 1500 differently to 1,500. What would be the best way to overcome this. Should I check for punctuation and then remove it? Obviously the simplest solution is to just tell people not to use “ , “ but unfortunately people vary rarely read instructions lol
Any help greatly appreciated
Many Thanks