-
Solved: Comparing 2 Sheets in a Workbook minor bug
Ladies & Gents,
Some minor bug in my script except can't quite figure out what it is...
I am tring to compare Column A in sheet1 with column A in sheet2 and whatever is not found in sheet2's Column A should be outputted to sheet3 column A at the moment it starts ok, but does not do next for some reason
Your help as always is much appreciated!!!!!!
Thanks a lot
-
Hi Itipu,
Minor bug as you said. You're writing all your data to the same cell A1.
Try
[vba]If rngFind Is Nothing Then
rngCell.EntireRow.Copy sh.Cells(Rows.Count, 1).End(xlUp).Offset(1)
End If
[/vba]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules