click on table span javascript

Smat90

New Member
Joined
Apr 21, 2016
Messages
2
Hi evrybody, I'am new user and I need your help
for frist sorry for my English :eek:

I would like to write a.script for copy some data from a table on this website: Euro area yield curve

The table is not immediatly visible, I must click on the word "Yields" that is on top-right of diagram, and so will appare the table.

I tried to write a vbascript for open the table but it does not work.
Can you help me please??

Below attach part of my code:

Private Sub CommandButton1_Click()


Dim termine As String
Dim tasso As String


termine = ""
tasso = ""


the_start:

Set objIE = CreateObject("internetExplorer.Application")
objIE.Top = 0
objIE.Left = 0
objIE.Width = 800
objIE.Height = 600
objIE.Visible = True 'vediamo la finestra

On Error Resume Next

objIE.navigate ("http://www.ecb.europa.eu/stats/money/yc/html/index.en.html")

Do
DoEvents

If Err.Number <> 0 Then
objIE.Quit
Set objIE = Nothing
GoTo the_start

End If


Loop Until objIE.ReadyState = 4


IE.document.all.item
Call IE.document.parentWindow.execScript("javascript:charts[0].switchDimension(1,1);", "JavaScript")

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,216,156
Messages
6,129,188
Members
449,492
Latest member
steveg127

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