Hi,
I’d like to create a macro which would generate entries in a database filling a Microsoft-Edge form from an Excel file (1 page for each line of the Excel file)
The steps are :
Can someone please help ?
Thanks a lot
I’d like to create a macro which would generate entries in a database filling a Microsoft-Edge form from an Excel file (1 page for each line of the Excel file)
The steps are :
- Declare the variables
- Dim ws As Worksheet
- Dim i As Integer
- Dim lastrow As Integer
- Open the Excel worksheet “Data”
- Set ws = ThisWorkbook.Sheets("Data")
- Open a Microsoft-Edge page “mypage”
- ActiveWorkbook.FollowHyperlink Address:="microsoft-edge:https://Path/Home.aspx"
- Temporisation to ensure the page is loaded
- Fill textboxes with the content of the Excel sheet cells ws.Cells(i, 1), ws.Cells(i, 2), ws.Cells(i, 3), ws.Cells(i, 4)
- Type=”text” id=”textbox1” , Type=”text” id=”textbox2” Type=”text” id=”textbox3” Type=”text” id=”textbox4”
- Click the “submit” button
- Type=”button” id=”submit_button”
- Increment i and fill another entry (loop steps 3 to 6)
- Loop until ws.Cell(i, 2) is empty
Can someone please help ?
Thanks a lot