'Getting 438 error while entering data on textbox on IE. This text box is on another TAB

I am doing some automation on IE browser. On this i am logging into the web application and after logging when i am clicking on botton the web opens a new tab where i need to enter the data onto the textbox but here i am getting an error 438. below is my code. please help me out. i highlighted the line in bold where i am getting an error. The last one i am clicking on end tab and i am getting an error on that

Sub upload()
Dim myValue As Variant
Dim IETab1Number As Integer
Dim IETab2Number  As Integer
Dim IETab3Number As Integer
' open IE, navigate to the desired page and loop until fully loaded
    Set IE = CreateObject("InternetExplorer.Application")
    my_url = "http://englogin.sbc.com/ELP/"
    With IE
        .Visible = True
        .Navigate my_url
        .Top = 50
        .Left = 530
        .Height = 400
        .Width = 400
    Do Until Not IE.Busy And IE.readyState = 4
        DoEvents
    Loop
    End With
    ' Input the userid and password
    IE.document.getElementById("GloATTUID").Value = "Zf9775"
    IE.document.getElementById("GloPassword").Value = "MrsCooper$99"
    ' Click the "Login" button
    IE.document.getElementById("GloPasswordSubmit").Click
    Do Until Not IE.Busy And IE.readyState = 4
        DoEvents
    Loop
     ' Click the "Continue" button
     IE.document.getElementById("successButtonId").Click
    Do Until Not IE.Busy And IE.readyState = 4
        DoEvents
    Loop
    ' Click the "MIC" button
    IE.document.getElementById("btnMechanizedInventoryCreation").Click
    Do Until Not IE.Busy And IE.readyState = 4
        DoEvents
    Loop
   
    Set html = IE.document
    html.querySelector("a[href='#MIC']").Click
    IE.document.querySelector("[name=telco11iProjectNumber]").Value = "123456"
    ' Enter JOB Number" button
    'myValue = InputBox("Give me some input")
    

End Sub
vba


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source