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

Grettings all!
I have been having problems with users using the space bar to clear the contents. I have used data validation to restrict the value to whole number only. If possible when the users tries to enter alpha or space to clear instead of the standard error message comes up I would like the message to be Sosomething like the value that you have entered is invalid. Press enter to retry or press cancel to clear contents. At this point the code would clear the contents. Where do I start. I have just started learning code and usually just use the macro recorder, but I cant quite figure out how to do this using the recorder.
Thanks in advance
Sandy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Data Validation

Hi Sandy
you can change the standard error message of data validation in the
dialog. Select the third tab in the dialog and enter your error message

HTH
Frank

Sandy wrote:
Grettings all!
I have been having problems with users using the space bar to clear
the contents. I have used data validation to restrict the value to
whole number only. If possible when the users tries to enter alpha
or space to clear instead of the standard error message comes up I
would like the message to be Sosomething like the value that you have
entered is invalid. Press enter to retry or press cancel to clear
contents. At this point the code would clear the contents. Where do
I start. I have just started learning code and usually just use the
macro recorder, but I cant quite figure out how to do this using the
recorder. Thanks in advance
Sandy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Data Validation

Thanks Frank. That solves part of the problem is there any way to clear contents when cancel is clicked
Thanks again
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Data Validation

Hi Sandy
if I cancel the data validation error my entry is cleared (that is the
previous entry is restored). But maybe I#m missing something in your
question

Frank

Sandy wrote:
Thanks Frank. That solves part of the problem is there any way to
clear contents when cancel is clicked? Thanks again



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
custom data validation on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


All times are GMT +1. The time now is 06:57 AM.

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"