Thank you! That works but it takes a very long time per worksheet.

[EDIT] Trying the second one, thanks.