Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default VALIDATION FUNCTION HELP

How can I use validation to stop users from entering the following
characters?: / \ : * ? " < |
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default VALIDATION FUNCTION HELP

Restrict where?

This is code for a text box on a user form and allows specified ascii:

Private Sub TEXTBOXNAME_TextBox_KeyPress(ByVal KeyAscii As
MSForms.ReturnInteger)

Select Case KeyAscii
Case 48 To 57 ' 0 thru 9
Case 65 To 90 ' A thru Z uppercase. 97 to 122 is lowercase
Case Else
KeyAscii = 0
End Select

End Sub

--
MacGuy


"KLZA" wrote:

How can I use validation to stop users from entering the following
characters?: / \ : * ? " < |

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
Data Validation & If function Opal Excel Worksheet Functions 1 August 24th 09 09:43 PM
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
VALIDATION FUNCTION HELP KLZA Excel Programming 1 May 14th 08 04:23 PM
Validation and IF function Anne Spencer Excel Discussion (Misc queries) 1 March 5th 08 09:10 AM
Data Validation Function Help John Jost Excel Worksheet Functions 3 December 22nd 05 03:25 PM


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