Hi Ashish Thank You very much.I checked the code it is working well. Regards & Thanks Rajesh Kainikkara
On 2/16/11, ashish koul <koul.ash...@gmail.com> wrote: > Sub tests() > Dim i As Long > > For i = 1 To Sheets(2).Range("b1").End(xlDown).Row > If Application.WorksheetFunction.CountIf(Sheets(1).Range("b:b"), > Sheets(2).Range("b" & i).Value) = 0 Then > Sheets(2).Select > Sheets(2).Range("b" & i).Select > Selection.EntireRow.Copy > Sheets(1).Select > > Sheets(1).Cells(Sheets(1).Range("b1").End(xlDown).Row + 1, 1).Select > ActiveSheet.Paste > End If > > Next i > > > > > End Sub > > > On Wed, Feb 16, 2011 at 8:40 PM, Rajesh K R > <rajeshkainikk...@gmail.com>wrote: > >> Hi >> Thanks for ur fast reply, now it copying the data in column"B" if I >> want to copy the entire raw how to change the code. >> >> Regards & Thanks >> Rajesh kainikkara >> >> On 2/16/11, ashish koul <koul.ash...@gmail.com> wrote: >> > Sub tests() >> > Dim i As Long >> > >> > For i = 1 To Sheets(2).Range("b1").End(xlDown).Row >> > If Application.WorksheetFunction.CountIf(Sheets(1).Range("b:b"), >> > Sheets(2).Range("b" & i).Value) = 0 Then >> > Sheets(1).Cells(Sheets(1).Range("b1").End(xlDown).Row + 1, 2).Value = >> > Sheets(2).Range("b" & i).Value >> > End If >> > >> > Next i >> > >> > >> > >> > >> > End Sub >> > >> > >> > On Wed, Feb 16, 2011 at 7:49 PM, Rajesh K R >> > <rajeshkainikk...@gmail.com>wrote: >> > >> >> Hi Experts >> >> How can select data from sheet2 which don't exist in sheet1 and copy >> >> the entire raw and paste in sheet1. Pls find the attached file to get >> >> more details >> >> >> >> Regards >> >> Rajesh Kainikkara >> >> >> >> -- >> >> >> >> >> ---------------------------------------------------------------------------------- >> >> 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 >> >> >> >> <><><><><><><><><><><><><><><><><><><><><><> >> >> Like our page on facebook , Just follow below link >> >> http://www.facebook.com/discussexcel >> >> >> > >> > >> > >> > -- >> > *Regards* >> > * * >> > *Ashish Koul* >> > *akoul*.*blogspot*.com <http://akoul.blogspot.com/> >> > *akoul*.wordpress.com <http://akoul.wordpress.com/> >> > My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> >> > >> > >> > P Before printing, think about the environment. >> > >> > -- >> > >> ---------------------------------------------------------------------------------- >> > 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 >> > >> > <><><><><><><><><><><><><><><><><><><><><><> >> > Like our page on facebook , Just follow below link >> > http://www.facebook.com/discussexcel >> > >> >> -- >> >> ---------------------------------------------------------------------------------- >> 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 >> >> <><><><><><><><><><><><><><><><><><><><><><> >> Like our page on facebook , Just follow below link >> http://www.facebook.com/discussexcel >> > > > > -- > *Regards* > * * > *Ashish Koul* > *akoul*.*blogspot*.com <http://akoul.blogspot.com/> > *akoul*.wordpress.com <http://akoul.wordpress.com/> > My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> > > > P Before printing, think about the environment. > > -- > ---------------------------------------------------------------------------------- > 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 > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- ---------------------------------------------------------------------------------- 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 <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel