Hi,

No i'm not doing that. It goes a little something like this:

VB Code:
  1. Private Sub MAINSUB()
  2.  
  3. 'Do some other stuff, including starting a loop
  4.  
  5. 'Call load web/source
  6. loadURLSource()
  7.  
  8. 'Call next lot of subs
  9. subC()
  10. subD() 'etc
  11. 'do some other stuff and go back to loop start
  12.  
  13. End SUb
  14.  
  15.     Private Sub loadURLSource()
  16.         'Load the url and the matching html source code
  17.         'Load the url to the webbrowser control brWeb...
  18.         brWeb.Navigate(curURL)
  19.      '   While brWeb.ReadyState <> SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE
  20.         '    Sleep(4000) ' Wait 4 seconds.
  21.      '   End While
  22.         'Auto Call to the webbrowsers docComplete sub (through the doc) to load the source html when the url has finished...
  23.     End Sub
  24.  
  25.     Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
  26.  
  27.  
  28.     Private Sub doc_DownloadComplete() Handles doc.DownloadComplete
  29.         'Load the source html...
  30.         txtSource.Text = brWeb.Document.documentelement.outerhtml
  31.       '  While loadcompl <> True
  32.       '      If txtSource.Text = "" Then
  33.       '          Sleep(4000) ' Wait 4 seconds.
  34.       '      Else
  35.       '          loadcompl = True
  36.       '      End If
  37.       '  End While
  38.  
  39.         MsgBox("doc")
  40.     End Sub

Do you think ur idea would work, if its the only way then I will do it but putting all the rest of my subs and stuff in there is a but ugly and annoying. Cheers for the suggestion though. (you're almost becoming my VB gardian angel )