When I write this sub:
Sub IB()
result = Application.InputBox("type a number", , , , , , , 1)
End Sub
The method InputBox has "type" as its last optional parameter, which allows you to restrict the datatype a user can insert. I set it to "1" in this example, restricting the datatype to "number". As far as I understand, by writing it like Application.InputBox I make explicit that InputBox is a method applied to the application. But when I remove the object "application" in the next sub:
Sub IB2()
result = InputBox("type a number", , , , , , ,)
End Sub
InputBox no longer has the paramater "type" as an option . I'd like to know why this happens.