HTML dynamic variables/refresh variables

JudahRaion

New Member
Joined
Oct 13, 2011
Messages
20
Hi guys,

I'm having troubles find a new variable for ie after searched something in. I think I should have a new variable because source change and I don't have the new source.

Code:
Sub teste()

the_start:


Set ie = CreateObject("InternetExplorer.Application")
'ncliente = Range("A" & j)
ie.navigate (URL)
ie.Visible = True


Do While ie.readyState <> 4
   Loop


Application.StatusBar = False


'selecionar as checkboxes que quero
Set desd_qd = ie.document.getElementsByName("data")
desd_qd.Item(0).Value = "-32000"
Set TMF02 = ie.document.getElementsByName("box0")
TMF02.Item(0).Checked = False
Set TCN02 = ie.document.getElementsByName("box1")
TCN02.Item(0).Checked = True
Set MOVSFIN = ie.document.getElementsByName("box2")
MOVSFIN.Item(0).Checked = False
Set TOP04 = ie.document.getElementsByName("box3")
TOP04.Item(0).Checked = False
Set TargetOperations = ie.document.getElementsByName("box4")
TargetOperations.Item(0).Checked = False
Set Transferencias_Geral = ie.document.getElementsByName("box6")
Transferencias_Geral.Item(0).Checked = False
Set HIST = ie.document.getElementsByName("box5")
HIST.Item(0).Checked = False


Set oInputs = ie.document.getElementsByTagName("input")
    For Each elm In oInputs
            If elm.Value = "Pesquisar" Then
                elm.Click
                Exit For
            End If
    Next

>>>>here is where I need to set a new variable with the result of the searching engine

End Sub

Can anyone help me please?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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