My bad i have fixxed this now. was not a problem with this code was a problem somewhere else in he macro.