Simon where does this part of the code fit into what I already have? I have tried putting it into the sheet code but it still shows up in the diolog box?