+ Reply to Thread
Results 1 to 7 of 7

Thread: Data pull from other sheet as per selection on DropDown List

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    27

    Data pull from other sheet as per selection on DropDown List

    Hi,

    Please find attached the Data format file.
    I have some data in sheet1 and in sheet2 i have create a Drop Down list on cell A1 with the name of team lead. what i want if i select any TL Name then all data will pull from sheet1 for respective Team lead only.

    I want to do this task with the help of macro.

    So please help me out.

    Thanks
    Abdul Haneef
    Last edited by Abdul Haneef; 01-31-2012 at 06:30 AM.

  2. #2
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,155

    Re: Data pull from other sheet as per selection on DropDown List

    Hi Abdul Haneef,
    The example file is not attached
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Data pull from other sheet as per selection on DropDown List

    Hi
    Now i have attached the example format file. please help me out.

    Thanks
    Abdul
    Attached Files Attached Files
    Last edited by Abdul Haneef; 01-28-2012 at 11:28 PM.

  4. #4
    Registered User
    Join Date
    01-04-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Data pull from other sheet as per selection on DropDown List

    Hi
    Attachment is there. Please help me out.

    Thanks
    Abdul

  5. #5
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,155

    Re: Data pull from other sheet as per selection on DropDown List

    Hi Abdul Haneef
    in the worksheet two module place
    Private Sub Worksheet_Change(ByVal Target As Excel.Range)
        Dim myRange As Range
        On Error Resume Next
        Set myRange = Intersect(Range("A1"), Target)
        If Not myRange Is Nothing Then
              Worksheets("Sheet2").Range("A4:D" & Worksheets("Sheet2").Cells(Worksheets("Sheet2").Rows.Count, 1).End(xlUp).Row).ClearContents
        With Worksheets("Sheet1")
            .Range("A1:D" & .Cells(.Rows.Count, 1).End(xlUp).Row).AutoFilter Field:=2, Criteria1:=Worksheets("Sheet2").Range("A2").Value
            .Range("A1:D" & .Cells(.Rows.Count, 1).End(xlUp).Row).SpecialCells(xlVisible).Copy ThisWorkbook.Worksheets("Sheet2").Range("A4")
        End With
       End If
    End Sub
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Data pull from other sheet as per selection on DropDown List

    Hi Pike,

    Thanks for your response. when i putting the code in my file then file is to be stocked (Hang). i think i am doing something wrong.
    I request to you please attached the file with code. i am new in VBA Macro.

    Thanks
    Abdul

  7. #7
    Forum Guru pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2010
    Posts
    5,155

    Re: Data pull from other sheet as per selection on DropDown List

    Finnaly the thing attached

    Example Format test.zip
    regards pike

    If the solution helped please donate
    here to the RSPCA

    Sites worth visiting;

    J&R Solutions - royUK

    AJP Excel Information - Andy Pope

    Spreadsheet Toolbox

    VBA for smarties - snb

  8. #8
    Registered User
    Join Date
    01-04-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Data pull from other sheet as per selection on DropDown List

    Hi Pike,

    Tanks a lot. my problem is solved.

    Thanks
    Abdul

+ 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.2.0