iframe select and click

Damiao Tele

New Member
Joined
Sep 4, 2015
Messages
1
I can not select the first item (if option value = " 08/08/2015 " ) .
I'm already too much time looking for solutions , can anyone help me!
HTML
HTML:
******** name="frameData2" id="frameData2" style="display:none;">*********>
<form name="frmSolic">
<input type="hidden" name="hidTela" value="data2">
<input type="hidden" name="hidData2Value">

<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td class="ListaTab2" align="center">
			<select name="selData" size="9" *******="javascript:enviaValores();" style="width:450px;">
			<option value="08/08/2015">08/08/2015</option><option value="07/08/2015">07/08/2015
I Tried
Code:
For Each element In IE.Document.frames("iframe").Document.getElementsByTagName("frameData2")
                If element.Name = "selData" Then
                element.Value = "08/08/2015"
                
                Exit For
                End If
                
            Next element
 
' click com a data seleionada
For Each element In IE.Document.frames("iframe").Document.getElementsByTagName("frameData2")
If InStr(SubmitInput.getAttribute("onclik"), "javascript:enviaValores();") Then
SubmitInput.Click
Exit For
End If
Next
 
Last edited by a moderator:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,223,164
Messages
6,170,435
Members
452,326
Latest member
johnshaji

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