Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Carolina Lopez   on Sep 20 In MS Office Category.

  
Question Answered By: Pam Harrison   on Sep 20

I tried changing my variable  val to val1 but type mismatch error  still
encountered.
In the code  below, I think the problem lies in the line :

ElseIf val  >= 700 And val <= 800 Then

Because I entered  a letter, reads that letter i entered but it's
comparing to a number. How should I fix this so that if I enter a
letter, it will not compare to the number  of the "if " conditions? I
thought the last "else" command in my code will take care of any other
other input other than the defined conditions in the "if" lines.

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Error in InputBox Or get search suggestion and latest updates.


Tagged: