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 :warning:

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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,634
Messages
6,173,476
Members
452,516
Latest member
archcalx

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