Copy text from Internet Explorer Webpage into Excel using VBA

samcd87

New Member
Joined
Apr 8, 2022
Messages
14
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Apologies if this has already been asked and answered. Struggling to find an answer.

We have an internal system that only works through Internet Explorer (I know!).

The particular page I need is just one line of basic text.

I need to open the relevant URL (let's say it's in Cell A1) copy the text and paste it in to cell B1, then close IE.

This is the format of the data on each page:

<html xmlns:e="ADDRESS REMOVE" xmlns:s="ADDRESSREMOVED">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<link rel="stylesheet" type="text/css" href="Bin.css">
</head>
<body>
<table width="40%">
<tr>
<td>NOT allowed at this property</td>
</tr>
</table>
</body>
</html>


I just need to return the data between <td> & </td>, so NOT allowed at this property

Thanks in advance!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Just to add I've got as far as opening the page, but I can't get any further. To open the page, I use:

Sub OpenCRMLinkinIE()
'
' OpenCRMLinkinIE Macro
'

If ActiveSheet.Range("A1") = "" Then
Else
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate ActiveSheet.Range("A1")
IE.Visible = True
Set IE = Nothing

End If
'
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

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