Hi,
Can someone please help.
I have the exact same code assigned to 'image_click' and 'commandbutton_click'.
'commandbutton_click' returns a 'type mismatch error' whilst 'image_click' does not.
It's a simple textbox in a userform.
If I type in say '20-2' and click on the image button, the cell will show '18'.
If I click on the commandbutton it goes straight to Message error.
However the cell contents does show '18'
I'm running MSO 2010 - Win 10
Any feedback would be appreciated.
Can someone please help.
I have the exact same code assigned to 'image_click' and 'commandbutton_click'.
'commandbutton_click' returns a 'type mismatch error' whilst 'image_click' does not.
Code:
On Error GoTo Message
If Not TextBox7.Value = vbNullString Then
Sheet1.Range("AN17") = "=" & TextBox7.Value
Else
Sheet1.Range("AN17") = ""
End If
GoTo Resumenow
Message: MsgBox "Please check Quantities only contain numbers and - + * ", vbExclamation, "QUANTITY ERROR"
TextBox7.SetFocus
Exit Sub
It's a simple textbox in a userform.
If I type in say '20-2' and click on the image button, the cell will show '18'.
If I click on the commandbutton it goes straight to Message error.
However the cell contents does show '18'
I'm running MSO 2010 - Win 10
Any feedback would be appreciated.