Following code should find the worksheet matching the name in Col AA, find whatever value is in the last cell of Col D in that sheet, and put it in Col AF of the Active sheet
Tried the following logic:
Set the number of sheets to be checked as the number of entries in Col AA
Set the name in AA (row) as a string, and call the sheet with that name
Find the last row in Col D of that sheet
Set value in row AF in the original sheet as that Col D value
Repeat cycle for other rows in AA
Code recognises "strName" as the name in Cell AA (whatever) but then generates a "Runtime Error 9 - Subscript Out Of Range" at "With Sheets(strName)"
All suggestions, solutions and advice welcome as ever
Ochimus
Bookmarks