+ Reply to Thread
Results 1 to 2 of 2

Data Validation question

Hybrid View

Guest Data Validation question 06-14-2005, 02:05 PM
Guest Re: Data Validation question 06-14-2005, 02:05 PM
  1. #1
    Jeff
    Guest

    Data Validation question

    Hello,

    In Excel you can select "Data" then "Validation" & then set data validation
    on Cells.

    I was looking at the VBA Validation Object seeing how to progromatically
    Add, Delete, or Modify Data Validation.

    But what I want to know is, is their a way through VBA code to tell if a
    Cell has Data Validation on it or not, bsaically returns True or False.

    For for example if I select Cells(1,1).select, is their Data Validation on
    it ?

    Any help would be greatly appreciated.

    Thank you,
    Jeff


  2. #2
    STEVE BELL
    Guest

    Re: Data Validation question

    This worked in Excel 2000

    Dim x
    On Error GoTo errorhandler
    x = Range("E1").Validation.Type = 1
    MsgBox "yes"
    Exit Sub

    errorhandler:
    On Error GoTo 0

    MsgBox "no"


    --
    steveB

    Remove "AYN" from email to respond
    "Jeff" <Jeff@discussions.microsoft.com> wrote in message
    news:909F83A4-669B-4494-9EBA-F97D8FB1DA18@microsoft.com...
    > Hello,
    >
    > In Excel you can select "Data" then "Validation" & then set data
    > validation
    > on Cells.
    >
    > I was looking at the VBA Validation Object seeing how to progromatically
    > Add, Delete, or Modify Data Validation.
    >
    > But what I want to know is, is their a way through VBA code to tell if a
    > Cell has Data Validation on it or not, bsaically returns True or False.
    >
    > For for example if I select Cells(1,1).select, is their Data Validation on
    > it ?
    >
    > Any help would be greatly appreciated.
    >
    > Thank you,
    > Jeff
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1