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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,217,133
Messages
6,134,839
Members
449,890
Latest member
xpat

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