Hello there, I have two equally sized ranges of data which I'd like to compare, however the ranges could potentially start on different rows in different Worksheets, E.g. rng1 = Sheets(1).range("A1:D4") rng2 = Sheets(2).range("B8:E11")
I can do this using "For i = 1 to maxRows" - with a bit of tweaking - but was hoping for a way of looping through using: Dim rngCell as Range For Each rngCell in rng1 If rngCell.Value = rng2.Cells(iRow, iCol).Value Next What I'm struggling with is determining the iRow & iCol values from the rngCell range, i.e. the relative position of rngCell(row & column) within the rng1 range. Hope this makes sense & hoping someone can help... Rgds Archie -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our Facebook Group @ http://www.facebook.com/group.php?gid=287779555678 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 <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,800 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe To unsubscribe from this group, send email to excel-macros+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.