Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to find a function/condition that maybe able to do this, thanks
for the input though! "Bob Phillips" wrote: Here's a code way Sub CopyDuplicates() Dim iLastRow As Long Dim i As Long Dim cell As Range iLastRow = Cells(Rows.Count, "A").End(xlUp).Row For i = 2 To iLastRow Set cell = Nothing Set cell = Range("A1:A" & i - 1).Find(Cells(i, "A").Value) If Not cell Is Nothing Then cell.EntireRow.Copy Cells(i, "A") End If Next i End Sub -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find last occurance of text in range | Excel Worksheet Functions | |||
How to fill colour in Excel, it appers No fill in my computer? | Excel Discussion (Misc queries) | |||
Fill automatically from one worksheet to another based on cel valu | Excel Discussion (Misc queries) | |||
Excel printing problem - won't print cell under a "fill effect" bo | Excel Discussion (Misc queries) | |||
HOW TO USE FIND OR SEARCH FUNCTION TO FILL DATA | Excel Worksheet Functions |