Test for existance of data validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Thanks,
Pflugs
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top