I have managed to get my code to work, but only by searching the internet and finding something that worked, I don't actually understand why.
Could someone please explain why when I used
Dim IE As New InternetExplorer
trying to press a button gave me the error
Object invoked has disconnected from clients
but using
Dim ie As SHDocVw.InternetExplorer
has worked?
Thank You