AB33 Thanks very much!!! it works

Quote Originally Posted by AB33 View Post
Try the attached.
The code was initially written for a loop code ,hence you see lots of commenting on some of the lines.