what do you mean by the last condition code is missing? I copied-pasted all the code in the file plus added End if, didn't I?