VBA - Webpages with multiple .do files

vistrup

New Member
Joined
Jun 27, 2017
Messages
8
Hi,

I have a webpage which consists of multiple .do files (3 to be exact).

The .do files are where the html code is stored in.

How can I through VBA ether merge all 3 or select file 2 or 3?

I cannot provide an URL because it is to our intranet. Sorry

Thanks in advanced
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
found out that it is iframs I need to look for :ROFLMAO:

However gets a runtime error 91...

Dim IE As InternetExplorer
Dim HTMLDoc As HTMLDocument
Dim iFra As HTMLDocument

Set IE = New InternetExplorerMedium

IE.navigate "...."

Set HTMLDoc = IE.document
Set iFra = HTMLDoc.frames(0).document
MsgBox HTMLDoc.getElementsByTagName("iframe").Item("leftFrame").outerHTML
MsgBox iFra.getElementsByTagName("button").Item("Insert").outerHTML

The first msgbox works fine but it is the second that are giving problems.

it works if I use iFra.documentElement.outerHTML instead :confused:
 
Upvote 0
There was a iframe in between which I didn't know about. Found out when I loaded the html content into a cell so I could inspect it :P

So the solution was nested frames :)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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