#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Data validation

Does anyone know how to have a text field (not a list) that will pop
an error message if the field is blank?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Data validation

Data < Validation < Allow:Text Length < Data: greater than < Minimum: 0 <
uncheck Ignore Blank.

You can use the Input Message tab and Error Alert Tab to inform the users of
what they need to do and how to fix their error. It works. I've been using
the validations for weeks to make sure my own people do what they're supposed
to with my spreadsheets.

QA Techie

" wrote:

Does anyone know how to have a text field (not a list) that will pop
an error message if the field is blank?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Data validation

You should really be more specific, it depends on what you are trying
to do. You could set up data validation on a cell, choose "Custom"
from the Allow dropdown, put "=NOT(ISBLANK(A1))" in the formula box,
and uncheck "Ignore Blank". Then if someone edits A1 and tries to
backspace over what is already there (leaving the cell blank), they
get an error message.

Or if you were creating a userform, you could write some validation
that checks the value of a text box. If it was blank, display error
msg. For example, if you had a userform with a text box named
TextBox1, this code would show an error message if you clicked on it
and then clicked away without typing anything.

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If TextBox1.Value = "" Then
Cancel = True
MsgBox "You forgot to type something!", vbCritical
End If
End Sub


HTH,
JP


On Mar 3, 4:39*pm, wrote:
Does anyone know how to have a text field (not a list) that will pop
an error message if the field is blank?


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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 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 01:31 AM.

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"