+ Reply to Thread
Results 1 to 2 of 2

Last needed info (validation)

  1. #1
    Registered User
    Join Date
    06-07-2006
    Location
    Montreal
    Posts
    73

    Red face Last needed info (validation)

    Here is the code with the missing link!
    What I want to do is activate a validation list (Named "Comply") in every cell to the right of a cell containing "I" in the B column...

    Anyone knows what goes in the (...)?


    Dim cell As Range
    For Each cell In Range("B:B")
    If cell = "I" Then cell.Offset(0, 1).(....)
    Next

  2. #2
    Bob Phillips
    Guest

    Re: Last needed info (validation)

    Dim cell As Range
    For Each cell In Range("B:B")
    If cell = "I" Then
    With cell.Offset(0, 1)
    On Error Resume Next
    .Validation.Delete
    On Error GoTo 0
    .Validation.Add Type:=xlValidateList, _
    AlertStyle:=xlValidAlertStop, _
    Formula1:="=Comply"
    End With
    End If
    Next cell

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Turquoise_dax" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Here is the code with the missing link!
    > What I want to do is activate a validation list (Named "Comply") in
    > every cell to the right of a cell containing "I" in the B column...
    >
    > Anyone knows what goes in the (...)?
    >
    >
    > Dim cell As Range
    > For Each cell In Range("B:B")
    > If cell = "I" Then cell.Offset(0, 1).(....)
    > Next
    >
    >
    > --
    > Turquoise_dax
    > ------------------------------------------------------------------------
    > Turquoise_dax's Profile:

    http://www.excelforum.com/member.php...o&userid=35185
    > View this thread: http://www.excelforum.com/showthread...hreadid=554638
    >




+ 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