There seems to be nothing wrong with the code. Are there any locked cells inthe worksheet or is it protected? If so you will have to unprotect it to runa sort.