Ah - missed that.

When you use "$" as a var and an error occurs, the var-name is blank!

You did not DIM the $ var prior to the first SendKeys call. Also, you should place the characters you're sending inside of quotes, since they are strings.

Since both vars are used to capture the Return Code and will not be examined, I'd use a generic $RC for both of them - just Dim it first!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D