Are you stepping the code through to see precisely what it's (not) doing?Either put a breakpoint on the code, or insert a Stop statement to take itinto debug mode.