I have the following code that assigns cell values to an array. Then it searches for the array values on another sheet and if it finds them, it copies the value of two cells to that sheet. The code works well on the selected sheet, one sheet at a time. I have 27 sheets in the workbook and I would like to run the code on all the sheets except the sheets named "1Summary", "2Blank" and "SheetNames" (This last sheet is hidden.) I'm having trouble finding the loop to make it work properly. In the sample file I posted, if we use the sheet named "AD-HIGHLAND", I would like to search column A for Last Name and column B for First Name. In this case it would find "Balkaran" and "Anita". Then I would like to find "Balkaran" and "Anita" in the sheet "1Summary" and from "AD-HIGHLAND", copy G17 to D7 in sheet "1Summary" and H17 to E7 in sheet "1Summary". It should then continue to search for any more names in Columns A and B in "AD-HIGHLAND". It would find "Kitney" in column A and "Sean" in column B and from "AD-HIGHLAND", copy G33 to D28 in sheet "1Summary" and H33 to E28 in sheet "1Summary". This process would continue until there are no more names in columns A and B. Then it would repeat the whole process for the remaining sheets with the exception of the three sheets "1Summary", "2Blank" and "SheetNames". Any suggestions would be greatly appreciated.
This is a link to another post:Please Login or Register to view this content.
http://www.ozgrid.com/forum/showthre...472#post631472
Bookmarks