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.
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
Hi
Now i have attached the example format file. please help me out.
Thanks
Abdul
Last edited by Abdul Haneef; 01-28-2012 at 11:28 PM.
Hi
Attachment is there. Please help me out.
Thanks
Abdul
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
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
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
Hi Pike,
Tanks a lot. my problem is solved.
Thanks
Abdul
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks