Thanks for your example. Ive also thought of doing my ownloop but did not want to re-invent the wheel if there was already asubroutine/function already built in VBA.