I'm using excel to open IE and send some javascript commands, but I've come up against a little trouble and it seems simple, but I havent really worked with this before so I was thinking somebody might have experience.

Call myIE.document.frames(2).execScript(" 'code here' "(),"Javascript")

is what I've been using, but the next Jscript I've come up against is a little different. When I scroll over it, this is what the browser tells me it is--- javascript:GoToMarket('2901',false,'HFL');

How do I put this into the above command in vba? Also, is there an easy way to determine which frame you are in?

Thanks in advance