Consulting

Results 1 to 3 of 3

Thread: Solved: Please help me in this VBA Code to edit

  1. #1
    VBAX Regular
    Joined
    Dec 2012
    Location
    Kabul - Afghanistan
    Posts
    40
    Location

    Question Solved: Please help me in this VBA Code to edit

    Hi dear Friends!
    I need to edit this macro that apply in a range like (B10:B2008) not in active cell please help me dear friends.
    [VBA]
    Public Sub CreateList()
    With ActiveCell
    .Validation.Delete
    .Validation.Add xlValidateList, , , "=" & "A1:A26"
    End With
    End Sub

    [/VBA]
    I like to be help full to my dear friends and I like Help full friends. Because ( A Friend in need is A Friend in dead)

  2. #2
    VBAX Mentor
    Joined
    Jul 2012
    Posts
    398
    Location
    [VBA]Sub CreateList()
    With Range("B1:B2008").Validation
    .Delete
    .Add Type:=xlValidateList, Formula1:="=$A$1:$A$26"
    End With
    End Sub[/VBA]

  3. #3
    VBAX Regular
    Joined
    Dec 2012
    Location
    Kabul - Afghanistan
    Posts
    40
    Location
    Thanks Dear Patel!
    You Solved my Problem. Please in the forum too kindly :
    http://www.vbaexpress.com/forum/show...823#post282823

Posting Permissions

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