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

Can I limit Input Box size to fit only 1 character?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Input Box Size

Oryssia, here is one way,

Sub test()
Dim st As String
st = InputBox("Enter 1 Character")
If Len(st) 1 Then
MsgBox "You Can Only Enter 1 Character"
Else
MsgBox "You Entered " & st
End If
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Oryssia" wrote in message
...
Can I limit Input Box size to fit only 1 character?



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
Field size for Data Validation Input Message MichaelRobert Excel Discussion (Misc queries) 2 February 5th 09 10:06 PM
Is it possible to increase the size of Data Validation Input Message? Ken Johnson Excel Discussion (Misc queries) 2 October 17th 08 11:47 AM
How to change Font size based upon cell input Ashley McKay Excel Discussion (Misc queries) 5 March 23rd 07 06:44 PM
How do I get a cell to change size with the info I input? Diane New Users to Excel 1 January 14th 07 07:32 PM
Multi line merged cell - adapting to different size input - possible? David Smithz Excel Discussion (Misc queries) 1 June 18th 06 04:21 PM


All times are GMT +1. The time now is 11:05 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"