Auto-Fill Angular Website Form

Ani85

New Member
Joined
Aug 21, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
We are having a customized website that is in Angular form and i am trying autofill it using Excel VBA for bulk creation. My problem is that i am able to auto fill all the fields of the form but they are not getting recognized and the create button stays greyed out. Only if i click using mouse and edit using keyboard it gets recognized and the create button gets highlighted.
Please help me here in getting the inputs recognized.

The script/query i have used is below:
Sub FillInternetForm()

Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")

IE.navigate "https://{angularwebsiteform}.com/wizard"
IE.Visible = True

While IE.Busy

DoEvents

Wend

IE.document.getElementById("mat-input-1").Value = ThisWorkbook.Sheets("Sheet1").Range("b1").Value
IE.document.getElementById("mat-input-2").Value = ThisWorkbook.Sheets("sheet1").Range("b2").Value
IE.document.getElementById("mat-input-3").Value = ThisWorkbook.Sheets("sheet1").Range("b3").Value
IE.document.getElementById("mat-input-4").Value = ThisWorkbook.Sheets("sheet1").Range("b4").Value
IE.document.getElementById("mat-input-5").Value = ThisWorkbook.Sheets("sheet1").Range("b5").Value
IE.document.getElementById("mat-input-6").Value = ThisWorkbook.Sheets("sheet1").Range("b6").Value
IE.document.getElementById("mat-input-7").Value = ThisWorkbook.Sheets("sheet1").Range("b7").Value
IE.document.getElementById("mat-input-8").Value = ThisWorkbook.Sheets("sheet1").Range("b8").Value
IE.document.getElementById("mat-input-9").Value = ThisWorkbook.Sheets("sheet1").Range("b9").Value
IE.document.getElementById("mat-input-10").Value = ThisWorkbook.Sheets("sheet1").Range("b10").Value
IE.document.getElementById("mat-input-11").Value = ThisWorkbook.Sheets("sheet1").Range("b11").Value
IE.document.getElementById("create").Click

End Sub
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,213,532
Messages
6,114,176
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top