Thread
:
How to find what's not there?
View Single Post
#
4
Posted to microsoft.public.excel.misc
Don Guillett[_2_]
external usenet poster
Posts: 1,522
How to find what's not there?
Here is a sample of this
Sub findeach()
For Each c In Range("a2:a5")
'MsgBox c
With Sheets("yourworksheetname")
On Error Resume Next
Set mf = .Columns(1).Find(What:=c, LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not mf Is Nothing Then
MsgBox mf & "found at " & mf.Row
End If
End With
Next
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"SLorenson" wrote in message
...
Tell me more, I can use FIND to compare two ranges?
"Don Guillett" wrote:
I would use a FIND macro. Record while doing by editfind and clean it
up
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"< AVG Joe" wrote in message
...
Any help on starting this would be greatly appreciated;
I have to find "new" accounts in a workbook.
Process wise, I think i need to open the "February" workbook,
and row by row look for the account number (column A) in the "January"
workbook.
If it's there, ignore it,
if NOT-then it's new and I need to add its entire row to a new sheet in
the
Feb. book.
Thanks.
.
Reply With Quote
Don Guillett[_2_]
View Public Profile
Find all posts by Don Guillett[_2_]