Hi looking for help with my input box macro below, I am looking to have the macro only allow certain numbers e.g. 10,20,30,40,50 etc but this doesn't work:
Sub runQsheet()
Dim myValue As Variant
Do
myValue = InputBox("Enter Fiscal Week Number", "Report Refresh", 1)
'cancel pressed
If StrPtr(myValue) = 0 Then Exit Sub
'inform user
If Not IsNumeric(myValue) Then MsgBox "Numeric Values Only" & Chr(10) & _
"Multiples of 10"
Loop Until Val(myValue) = 10,20,30,40,50
Range("B1").Value = CLng(myValue)
Sub runQsheet()
Dim myValue As Variant
Do
myValue = InputBox("Enter Fiscal Week Number", "Report Refresh", 1)
'cancel pressed
If StrPtr(myValue) = 0 Then Exit Sub
'inform user
If Not IsNumeric(myValue) Then MsgBox "Numeric Values Only" & Chr(10) & _
"Multiples of 10"
Loop Until Val(myValue) = 10,20,30,40,50
Range("B1").Value = CLng(myValue)