kiltjim
The code you posted looks good. Don't know why it was not working for you.
Just to be sure I was not missing some small typo, I pasted it directly from your post into Mach's
VB scripter window and it ran as it should.
What version of Mach are you running? There have been some versions with with problems running
VB
Greg