Hi You may also
1) sort the column (say A) 2) write this formula in an empty (or insert a new one) column next to A (B) =A2=A1 3) Filter column B for all "TRUE" values and delete entire rows of the filtered range! :) Hemant Hegde On 8 June 2010 19:34, ashish koul <koul.ash...@gmail.com> wrote: > first sort the sheet on col a basis then run it .... > > > > Sub Macro1() > Dim i, j, s, r As Long > Dim a As String > > j = 1 > Sheets(1).Select > Range("A100000").Select > Selection.End(xlUp).Select > r = ActiveCell.Row > > For i = 1 To r > > If Range("a" & i + 1) <> Range("a" & i) Then > a = Range("a" & i).Value > > s = i > > > Rows(j & ":" & s).Select > Selection.Copy > Sheets.Add After:=Sheets(Sheets.Count) > ActiveSheet.Paste > > ActiveSheet.Name = a > > > > j = i + 1 > Sheets(1).Select > End If > > Next i > Sheets(1).Select > > > End Sub > > > > On Tue, Jun 8, 2010 at 1:22 PM, L.K. Modi <ca.mod...@gmail.com> wrote: > >> thank you i understand >> >> >> On Tue, Jun 8, 2010 at 4:43 AM, Amanda <propagan...@gmail.com> wrote: >> >>> Hi Lkmodi, >>> >>> The uploaded spreadsheet does not have any formulas/VBA in it. It is >>> simply to give you an idea of what the sheet will look like (first >>> tab) and what I want the tabs to eventually look like (2nd tab). >>> >>> Thanks, >>> Amanda >>> >>> On Jun 7, 6:15 pm, "L.K. Modi" <ca.mod...@gmail.com> wrote: >>> > > DEAR AMANDA >>> > >>> > > I HAVE FOUND THE SAMPLEWORKSHEET BUT UNABLE TO FINE THE LOGIC BECAUSE >>> > > THERE IS NO FORMULA IS THERE. PLS EXPLAIN IN DETAILS THAT WORKSHEET >>> SO THAT >>> > > WE CAN KNOW THE LOGIC. I WANT TO KNOW HOW U SEGREGATED THAT TWO NAMES >>> FROM >>> > > THE DATA WORKSHEET >>> > >>> > > REGARDS >>> > > LKMODI >>> > >>> > > On Mon, Jun 7, 2010 at 10:57 AM, Amanda <propagan...@gmail.com> >>> wrote: >>> > >>> > >> Or you can download the sample spreadsheet here: >>> > >>> > >>http://dl.dropbox.com/u/7375694/Amanda%20Example.xlsx >>> > >>> > >> -- >>> > >>> > >> >>> --------------------------------------------------------------------------- >>> ------- >>> > >> Some important links for excel users: >>> > >> 1. Follow us on TWITTER for tips tricks and links : >>> > >>http://twitter.com/exceldailytip >>> > >> 2. Join our LinkedIN group @ >>> http://www.linkedin.com/groups?gid=1871310 >>> > >> 3. Excel tutorials athttp://www.excel-macros.blogspot.com >>> > >> 4. Learn VBA Macros athttp://www.quickvba.blogspot.com >>> > >> 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com >>> > >>> > >> To post to this group, send email to excel-macros@googlegroups.com >>> > >>> > >> <><><><><><><><><><><><><><><><><><><><><><> >>> > >> HELP US GROW !! >>> > >>> > >> We reach over 7000 subscribers worldwide and receive many nice notes >>> about >>> > >> the learning and support from the group.Let friends and co-workers >>> know they >>> > >> can subscribe to group at >>> > >>http://groups.google.com/group/excel-macros/subscribe >>> >>> -- >>> >>> ---------------------------------------------------------------------------------- >>> Some important links for excel users: >>> 1. Follow us on TWITTER for tips tricks and links : >>> http://twitter.com/exceldailytip >>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >>> 3. Excel tutorials at http://www.excel-macros.blogspot.com >>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >>> >>> To post to this group, send email to excel-macros@googlegroups.com >>> >>> <><><><><><><><><><><><><><><><><><><><><><> >>> HELP US GROW !! >>> >>> We reach over 7000 subscribers worldwide and receive many nice notes >>> about the learning and support from the group.Let friends and co-workers >>> know they can subscribe to group at >>> http://groups.google.com/group/excel-macros/subscribe >>> >> >> -- >> >> ---------------------------------------------------------------------------------- >> Some important links for excel users: >> 1. Follow us on TWITTER for tips tricks and links : >> http://twitter.com/exceldailytip >> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >> 3. Excel tutorials at http://www.excel-macros.blogspot.com >> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >> >> To post to this group, send email to excel-macros@googlegroups.com >> >> <><><><><><><><><><><><><><><><><><><><><><> >> HELP US GROW !! >> >> We reach over 7000 subscribers worldwide and receive many nice notes about >> the learning and support from the group.Let friends and co-workers know they >> can subscribe to group at >> http://groups.google.com/group/excel-macros/subscribe >> > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 7000 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group at > http://groups.google.com/group/excel-macros/subscribe > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 7000 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe