Try sticking some msgBox s in the code to show you what expressions you arecoming up with, or put a break before the relevant line and look at thevariables with the mouseover (or put ?MyName in the immediate window.)