Hi all,
tried so many ways but no success
posting my code so soeone can point out the mistake
Sub LoginToThisWebPage()
Dim ie As SHDocVw.InternetExplorer
'Set oIE = CreateObject("InternetExplorer.Application")
Set ie = New SHDocVw.InternetExplorer
'Make the Inter*net Explorer visible
ie.Visible = True
'Nav*i*gate to the www.gmail.com
'oIE.Navigate2 "www.gmail.com"
ie.Navigate2 "crn.religare.in/newcrn/CRN_Login.aspx"
'================
'Wait till the browser is busy and page is fully loaded
Do While ie.Busy
Loop
Do While ie.ReadyState < 4
Loop
'================
Dim hPage As HTMLDocument 'Object 'HTMLDocument
Dim oUserID As Object
Dim oPassWd As Object
Dim ElCol As IHTMLElementCollection
Dim El As IHTMLElement
Set hPage = ie.Document
'Sheets("Sheet3").Cells(2, 5) = hPage.documentElement.innerHTML
Set El = hPage.forms("Form1")
With El
'Debug.Print " .elements(" & e & ")"
'Debug.Print " .tagName=" & .tagName & " --- .Name=" & .Name & " --- .ID=" & .ID & " --- .Value=" & .Value
'.all.Item("_EVENTTARGET").Value = "***x"
End With
End Sub