VBA code to fill the web form and Submit

Status
Not open for further replies.

imgaur7

New Member
Joined
Dec 25, 2017
Messages
32
(Admin: Kindly delete my previous post if any on this question if you find any)

I am working on some web auto fill using excel data, and I am able to fill the first page correctly as required but the issue comes when it click on Submit button.

Here submit loads another page wherein I need to fill some more data. The problem is that I am not able locate the elements through the code to fill the data in it, or somehow my code dont work on the "New Internet Explorer page".

I have the HTML code as mentioned below for your reference { <> is replaced by ()}

('div title="002723" class="question" id="question_002723_div)

I would like to consider the element by id such as to fill the text from excel

doc.getElementById("question_002723_div").Value = ThisWorkbook.Sheets("Data").Range("A2").Value

Kindly suggest if possible. (May be I am able to explain myself clearly here)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This thread is a duplicate of: https://www.mrexcel.com/forum/general-excel-discussion-other-questions/1084387-vba-web-elements.html and https://www.mrexcel.com/forum/gener...forms-excel-data-post5210674.html#post5210674
As you have previously been asked, kindly read Mr Excel's policy in Rule 12 against asking questions about the same topic in multiple threads: http://www.mrexcel.com/forum/board-announcements/99490-forum-rules.html
Thread closed. You may continue the discussion in your other thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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