U can trial placing this line of code before the error line...
Msgbox ArgString
Maybe there is no value for ArgString as U set it to vbnullstring and then maybe the instr argument didn't create a new value? HTH. Dave
ps. Please use code tags