Thanks Robert, but I would like a macro to do it as part of another process.

Thanks