Results 1 to 6 of 6

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    Aug 2011
    Posts
    92
    Rep Power
    14

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

    Hi,

    Is there a way to add Dropdown list in a range with last availabe column and row. Using some short of End(xlUP) and End(xlRight) function. I got a code but it only insert the dropdown in one cell.

    HTML Code:
    Sub Add_Drop_Down_Menu_Cell()
     
    With Range("C4").Validation
     .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:=xlBetween, _
     Formula1:="=$P$18:$P$20"
     .IgnoreBlank = True
     .InCellDropdown = True
     End With
    
     End Sub
    
    dropdown list.xlsm


    Thanks
    Rajesh
    Last edited by Rajesh Kr Joshi; 11-23-2012 at 10:12 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
  •