Copying an embedded Javascript data using VBA and Data-From Web in Excel 2010? A tricky one!

actjfc

Active Member
Joined
Jun 28, 2003
Messages
416
Excel friends,

I need to read and copy a bunch of web pages in EXCEL 2010, easy to do with data-from web. The challenge for me is that the webpages have this code in there:

href="Javascript:serpShowTelephone('12345678','012345678'); The phone is shown only when you click on it!

So, the phone number is somehow embedded, and it is not shown a whole phone number in the copy extracted from the webpage.

How can I modify the query data-from web to actually copy the complete phone number?

The web page is a kind of internal webpage with name, address and phone. I would like to copy them clean and easily, using EXCEL 2010 VBA, if you have any advice I would appreciate. Otherwise, I have to copy them I clean the page kind of manually.

Thanks in advance for your help.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,631
Messages
6,173,465
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