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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,216,108
Messages
6,128,872
Members
449,475
Latest member
Parik11

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