Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default InputBox Question

Hi all, is it possible to limit the number of text put into an input box
?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 468
Default InputBox Question

The InputBox allows for a Title parameter Where you can instruct the user to
Not enter over 8 text characters (say), but additionaly put in a line of code
following the Inputbox line, somthing like..

ans = Incputbox("Enter proper text - Limit to 10 Characters..")
if Len(ans) 10 then
Msgbox "Too many characers, limit to 10 or less"




"Les Stout" wrote:

Hi all, is it possible to limit the number of text put into an input box
?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default InputBox Question

Thanks so much, will implement.

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default InputBox Question

Hi
Public Sub test()
Dim InputOK As Boolean, myText As String
Do
InputOK = True
myText = InputBox(prompt:="Input 8 characters or less")
If Len(myText) 8 Then
MsgBox "Too many characters!"
InputOK = False
End If
Loop Until InputOK
End Sub

regards
Paul

On Mar 7, 4:03 pm, Les Stout wrote:
Hi all, is it possible to limit the number of text put into an input box
?

Les Stout

*** Sent via Developersdexhttp://www.developersdex.com***



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default InputBox Question

Thanks very much Paul, your input is much appreciated

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
Reply
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
inputbox question redb Excel Discussion (Misc queries) 0 October 6th 05 02:57 PM
Inputbox question Wylie C Excel Programming 3 September 25th 05 11:36 PM
Inputbox question wilro85[_6_] Excel Programming 5 September 9th 05 03:57 PM
Inputbox Question Joel Mills Excel Programming 6 June 28th 05 10:08 PM
Inputbox question Nancy[_4_] Excel Programming 3 December 12th 03 01:56 AM


All times are GMT +1. The time now is 03:39 PM.

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

About Us

"It's about Microsoft Excel"