Thanks Don Chandru Chennai.
On Sun, Feb 5, 2012 at 8:08 PM, dguillett1 <dguille...@gmail.com> wrote: > Sub getdataSAS() > 'Not as fancy but it gets the job done and understandable "KISS" > Dim lr As Long > Dim lc As Long > Range(Range("g8"), Range("g8").End(xlDown).End(xlToRight)).Clear > > With Sheets("data") > lr = .Cells(Rows.Count, 1).End(xlUp).Row > lc = .Cells(2, Columns.Count).End(xlToLeft).Column > .Range(.Cells(2, 1), .Cells(lr, lc)) _ > .AutoFilter Field:=2, Criteria1:="Collection Journal" > .Cells(3, "c").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "g") > .Cells(3, "a").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "h") > .Cells(3, "g").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "i") > .Cells(3, "e").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "j") > .Cells(3, "f").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "k") > .Cells(3, "h").Resize(lr - 2).SpecialCells(xlCellTypeVisible).Copy > Cells(8, "l") > .Range(.Cells(2, 1), .Cells(lr, lc)).AutoFilter > End With > Columns > End Sub > > Don Guillett > SalesAid Software > dguille...@gmail.com > > *From:* chandra sekaran <duraichan...@gmail.com> > *Sent:* Sunday, February 05, 2012 12:15 AM > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Cashflow filter data not coming all data > > Hi > This is code wrriten by Rajan verma, it is small issues is there when > Filter Collection journal in data sheet it will not pickup all > collection journal data in my out put sheet what is issues below code > > > > Dim rngRowData As Range > Dim rngCell As Range > Dim wksOutPut As Worksheet > Set wksOutPut = ThisWorkbook.Worksheets("Output") > > Set rngRowData = Range("rngRowData").CurrentRegion > rngRowData.AutoFilter Field:=2, Criteria1:="Collection Journal" > Set rngRowData = rngRowData.SpecialCells(xlCellTypeVisible) > Set rngRowData = Intersect(rngRowData, rngRowData.Offset(1)) > With Range("rngCollStart") > > .Resize(Range("rngCollStart").CurrentRegion.Rows.Count, > 6).ClearContents > .Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(3).Value > .Offset(, 1).Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(1).Value > .Offset(, 2).Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(7).Value > .Offset(, 3).Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(5).Value > .Offset(, 4).Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(6).Value > .Offset(, 5).Resize(rngRowData.Rows.Count - 1, 1).Value = > rngRowData.Columns(8).Value > End With > rngRowData.AutoFilter > > Regards > chandru > > > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com