Forum

Notifications
Clear all

Getting 438 Error

2 Posts
2 Users
0 Reactions
170 Views
(@puneetsingh)
Posts: 1
New Member
Topic starter
 

Hello,

Using VBA code after login into web i am clicking on one button which leads to me on next tab on IE browser where i need to enter the data into the textbox but i am getting an error. I am pasting my code below please help me out if possible. In below code in getting an error on "IE.Document.getElementsByName("telco11iProjectNumber").Value = "1234567""

 

Sub upload()
Dim myValue As Variant
' 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
IE.Document.getElementsByName("telco11iProjectNumber").Value = "1234567"
' Enter JOB Number" button
'myValue = InputBox("Give me some input")

End Sub

 
Posted : 21/03/2022 11:06 am
(@debaser)
Posts: 838
Member Moderator
 

getElementsByName returns an HTMLCollection, not a single element, so it doesn't have a value property.

 
Posted : 21/03/2022 7:18 pm
Share: