+ Reply to Thread
Results 1 to 4 of 4

VBA Data Validation Question

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-30-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: VBA Data Validation Question

    I actually got that far. The issue is that the cells without the corresponding asterisk still have the drop down menu, even though it's "deactivated". I was hoping there would be a way that for those cells there would be no validation at all, meaning no drop down menu if you were to click on the cell....That's why I was trying to steer away from conditional formatting, and stick with VBA, if it's even possible.....

  2. #2
    Forum Contributor
    Join Date
    01-30-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: VBA Data Validation Question

    Finally figured it out.

    Sub ValidateStuff()
    Dim rng2 As Range
    
        Set rng2 = Range("E17:E167")
        For Each cell In rng2
           
            If cell.Value <> "*" Then
                
                With cell.Offset(0, 12).Validation
                        .Delete
                        .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
                        Operator:=xlBetween, Formula1:="=MoreStuff"
                    End With
            End If
        Next
    
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Validation question
    By Steven811 in forum Excel General
    Replies: 7
    Last Post: 03-21-2016, 08:57 AM
  2. Data Validation Question
    By dubs1013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2015, 05:54 PM
  3. Data Validation question
    By TDFEELY in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2012, 11:28 AM
  4. Data Validation Question
    By Bizquick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2011, 12:12 PM
  5. Data Validation - question
    By tweek333 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2009, 11:59 AM
  6. Excel 2007 : Data Validation Question
    By jasonmcbride in forum Excel General
    Replies: 6
    Last Post: 10-29-2008, 06:13 PM
  7. [SOLVED] Another Data Validation question
    By Nigel in forum Excel General
    Replies: 3
    Last Post: 10-14-2005, 06:05 PM

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