Olivia Grant
New Member
- Joined
- Mar 11, 2015
- Messages
- 5
I'm hoping this is an easy fix! I have an input box which works great but when the cancel button is clicked it brings up "Run-time error '13': Type mismatch". The code I am using is listed below. Any advise on how to have the cancel button just exit out of the message box?
Sub gethours()
Dim QtyEntry As Currency
Dim msg As String
msg = "Enter Pitched Amount"
QtyEntry = InputBox(msg)
Worksheets("overview").Range("H5").Value = QtyEntry
End Sub
Sub gethours()
Dim QtyEntry As Currency
Dim msg As String
msg = "Enter Pitched Amount"
QtyEntry = InputBox(msg)
Worksheets("overview").Range("H5").Value = QtyEntry
End Sub