No sp, that's a good suggestion, but I am well past that stage. I need someone with a good knowledge of VBA who is prepared to help here (by PM/email).
Since you ask, the routine works fine as a keyboard recorded macro but will not run correctly in the main programme.