Excel VBA to select dropdown and fill text Web Form

Status
Not open for further replies.

imgaur7

New Member
Joined
Dec 25, 2017
Messages
32
I am looking to get a web form filled with excel data wherein VBA opens the URL from the list and then fill the data as per the excel cells data (B2, C2, D2...)

Refereed some online data and tried to get the code of the web page which might help you in getting a solution

Code:
<form name="CREATE" method="post" action="Test.pl">
        <fieldset id="ui-Test_widget-1" class="Test_widget ui-Test_widget">
            <legend>Test Widget</legend>
            <div class="Test_company_ident optional"> 
                <label>Test Company</label>
                <select id="ui-Test_widget-1_Test_company_ident" name="Test_company_ident" data-widget="Test_widget">
                    <option value="">Choose</option>
<option value="2002913">xxx 1234</option>
<option value="18238">xxx 4569</option>
<option value="205336">xxx 8745</option>
                </select>
            </div>
            <div class="Test_client_ident optional"> 
                <label>Test Client</label>
                <select id="ui-Test_widget-1_Test_client_ident" name="Test_client_ident" data-widget="Test_widget">
                    <option value="">Choose</option>
<option value="360338">BBB 1456</option>
<option value="34238">DDD 45236</option>
<option value="122318">WWW 12589</option>
                </select>
            </div>
            <div class="Test_ident required"> 
                <label>Test</label>
                <select id="ui-Test_widget-1_Test_ident" name="Test_ident" data-widget="Test_widget">
                    <option value="">Choose</option>
<option value="3314948">Test Form 1</option>
<option value="3316660">Test Form 2</option>
<option value="3327180">Test Form 3</option>


                  </optgroup>
                </select>
            </div>
        </fieldset>
        ******** type="text/javascript">......
        *********>
        <fieldset class="action_area">
            <div class="form_submit">
                <input type="button" class="cancel button" value="Cancel" *******="self.close();">
                <input type="submit" class="submit" value="Submit">
            </div>
        </fieldset>
        </form>

Steps to follow:
Open web page using URL
enter/fill data as per excel
submit the page
Next URL and loop

Web page has drop down as well as text box

It will be of great help as it becomes a long job to fill a list of 1000+ data. Rest I may follow through and this is to start with (Ignore me as I am just getting close to programming as starter only) :)
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Duplicate https://www.mrexcel.com/forum/excel...ll-web-form-loop-post5031258.html#post5031258

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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