Sorry but I’m a bit confused, you posted in the javascript forum, the thread title says Java, but you mention ActiveX
It should help if you post more about the macro you currently tying to use.
Sorry about that, but actually the code is a mix between ActiveX and JavaScript. I wrote here because I read that someone posted in this forum similiar question.