ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Data validation - error alerts (https://www.excelbanter.com/excel-programming/357769-data-validation-error-alerts.html)

ledgreg

Data validation - error alerts
 
Hi,

Is there a way to turn off the data validation error alert for an
entire workbook without resetting all the data validations I have
setup? Or is there a value I can add to one of the cells in my data
validation source list to allow users to type in values not included in
the list?

I have hundreds of cells using data validation and really don't want to
turn off the error alert for each one individually. At one time I had
the ability to enter in anything I wanted in a data validated cell
without turning off the error alert. I assumed it was because one of
the cells in my list had nulls or spaces in it. But I can no longer
seem to get that to work....

I sure would appreciate any thoughts that may save me the tedious
process of having to turn off error alerts for hundreds of cells...

Thanks,
Greg


Jim Rech

Data validation - error alerts
 
To turn off all validations on the active sheet run this:

Sub ValidationCtrl()
Dim Cell As Range
For Each Cell In Cells.SpecialCells(xlCellTypeAllValidation)
Cell.Validation.ShowError = False
Next
End Sub

Change to True and re-run to turn validations back on.

--
Jim
"ledgreg" wrote in message
oups.com...
Hi,

Is there a way to turn off the data validation error alert for an
entire workbook without resetting all the data validations I have
setup? Or is there a value I can add to one of the cells in my data
validation source list to allow users to type in values not included in
the list?

I have hundreds of cells using data validation and really don't want to
turn off the error alert for each one individually. At one time I had
the ability to enter in anything I wanted in a data validated cell
without turning off the error alert. I assumed it was because one of
the cells in my list had nulls or spaces in it. But I can no longer
seem to get that to work....

I sure would appreciate any thoughts that may save me the tedious
process of having to turn off error alerts for hundreds of cells...

Thanks,
Greg




ledgreg

Data validation - error alerts
 
Thanks so much Jim you just saved me a ton of time!!!

Take care,
Greg



All times are GMT +1. The time now is 01:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com