ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Test for existance of data validation (https://www.excelbanter.com/excel-programming/393214-test-existance-data-validation.html)

Pflugs

Test for existance of data validation
 
Could someone provide syntax to test for data validation within a cell? I
can't seem to get it to work.

Thanks,
Pflugs

Bob Phillips

Test for existance of data validation
 
Dim dv

On Error Resume Next
dv = ActiveCell.Validation.Type
On Error GoTo 0
If Not IsEmpty(dv) Then
MsgBox "validation"
End If


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pflugs" wrote in message
...
Could someone provide syntax to test for data validation within a cell? I
can't seem to get it to work.

Thanks,
Pflugs




Pflugs

Test for existance of data validation
 
Thanks. I was trying to use "Is Nothing".

Thanks,
Pflugs

"Bob Phillips" wrote:

Dim dv

On Error Resume Next
dv = ActiveCell.Validation.Type
On Error GoTo 0
If Not IsEmpty(dv) Then
MsgBox "validation"
End If


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Pflugs" wrote in message
...
Could someone provide syntax to test for data validation within a cell? I
can't seem to get it to work.

Thanks,
Pflugs






All times are GMT +1. The time now is 10:07 AM.

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