himperson1
New Member
- Joined
- Jun 23, 2016
- Messages
- 33
hello all. i am trying to filter out some duplicate data on my worksheet by copying a "uniqueness identifier" within the last cell of the worksheet and then pasting that into the CtrlF function of excel on a separate worksheet. here's what i've got so far but i am getting an error 424 "object required" when i reach the find function in the code. what am i missing?
Code:
Dim DataObj As MSForms.DataObject
Set DataObj = New MSForms.DataObject
DataObj.GetFromClipboard
Sheets("YTD").Select
Range("A1").Select
Selection.End(xlDown).Select
Selection.End(xlToRight).Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1.Copy
Sheets("Instructions For Use (2)").Select
Range("A1").Select
Cells.Find(What:=objData.GetText, After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.EntireRow.Select