Originally posted by OneSource
Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    If pDisp is WebBrowser1.Object Then
        a = WebBrowser1.Document.documentElement.innerHTML 
    End If
End Sub
That should take care of your Frames Problem.

All the best.

I've tried this but it will only retrieve the master page, what I want to get is the other pages as well.

For example a web page contains 3 frames, then maybe I'll need 3 string variables to hold the content of each of the 3 web page or maybe I can concatenate all three into one string variable.

Do you know how to do this?
Thanks.