imput box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

have a macro which requires a user to enter a number between 2 values (1 and
100) , is their a way to shorten the imput box field so only allow values
between these figures
 
Hello Rich

Dim WhatNumber As Long
While WhatNumber < 1 Or WhatNumber > 100
WhatNumber = Application.InputBox("Input number between 1 and 100",
"Number?", , , , , , 1)
Wend

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top