Results 1 to 6 of 6

Thread: Dropdown list in a range with last availabe column and row using vba

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    Sure, I was following your example.

    If the sheet contains only the input range and the Validation List placed in another sheet and refered to as a NamedRange you could use:
    Code:
    Option Explicit
    
    Sub Add_Drop_Down()
    
        Dim LCell As String
        LCell = ActiveCell.SpecialCells(xlLastCell).Address
    
        With Range("C4:" & LCell).Validation
            .Delete
            .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, Formula1:="=Validation_List"
            .IgnoreBlank = True
            .InCellDropdown = True
        End With
    
    End Sub
    Last edited by rollis13; 11-24-2012 at 07:20 PM.

Similar Threads

  1. Copy Table Range Till Last Row Using VBA
    By ivandgreat in forum Excel Help
    Replies: 2
    Last Post: 05-09-2013, 05:41 PM
  2. Replies: 7
    Last Post: 04-21-2013, 07:50 PM
  3. List of Dates In DropDown Starting From Today()
    By rich_cirillo in forum Excel Help
    Replies: 5
    Last Post: 04-10-2013, 05:58 PM
  4. Change Display Range Based On Change of Dropdown Values
    By rich_cirillo in forum Excel Help
    Replies: 2
    Last Post: 03-29-2013, 04:58 AM
  5. Lookup From Cell Range By Matching Row and Column
    By paul_pearson in forum Excel Help
    Replies: 2
    Last Post: 03-07-2013, 02:02 PM

Posting Permissions

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