cfernand74
08-10-2014, 10:25 PM
Having issues with several of the vendors i work for. They have a web form that i complete by transferring data from excel into there webpage. This vendor has several web forms that look similar but have additional questions(text boxes) that differ from form to form and need filling out.
What i want to do is check/test if webpage hold that text box and if so then run my code.
Sample web code for a text box i want to check for on a web page and if it exist on web page then run the code below:
<input name="ext_color" class="textfield required" id="ext_color" type="text" maxlength="15" value="Baige">
This is how i input data into this text box:
IE.Document.getElementsByName("ext_color")(0).Value = Range("aj54")
What normally happens is this text box is not on all forms that i complete, so i want to eliminate/bypass executing the code by implementing an If..Then statement for when the text box is not included on the webpage form.
thanks in advance.
What i want to do is check/test if webpage hold that text box and if so then run my code.
Sample web code for a text box i want to check for on a web page and if it exist on web page then run the code below:
<input name="ext_color" class="textfield required" id="ext_color" type="text" maxlength="15" value="Baige">
This is how i input data into this text box:
IE.Document.getElementsByName("ext_color")(0).Value = Range("aj54")
What normally happens is this text box is not on all forms that i complete, so i want to eliminate/bypass executing the code by implementing an If..Then statement for when the text box is not included on the webpage form.
thanks in advance.