LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default imput box

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

"Rich" (no spam) a écrit dans le message de news:
...
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



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
7 Day Automatic Imput Matlock Excel Discussion (Misc queries) 5 March 6th 08 02:50 AM
Autocorrecting my Number imput GophsHcky5 Excel Discussion (Misc queries) 1 March 22nd 07 02:44 AM
Automated imput partly Matt_07 Excel Worksheet Functions 2 January 30th 07 01:59 PM
two-imput data table Ashley Excel Worksheet Functions 2 December 11th 06 07:30 PM
Imput box - Multiple Lines (\n) Nikkih[_4_] Excel Programming 2 April 30th 04 04:47 AM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"