No Logit, it is not working

i am getting stuch at the following line:
Set userName = IE.Document.getAttribute("txtCRNNo") ' stuck here
i changed the line to
IE.Document.all.Item("txtCRNNo").Value = myUserName 'not working
i changed your code a bit:
i tried declaring IE As SHDocVw.InternetExplorer

But there is no progress

Regards,
Geetha