const71
asked on
Shellexecute Opens HTML first time but fails to reload when called again
I am trying to refresh a webpage from within a VB program. The first call opens the page successfully, however when Shellexecute is called again, the page is not refreshed (it contains the same page from the first call)
How do I force a reload (like when i click the refresh toolbar button in the explorer browser)
Thanks
How do I force a reload (like when i click the refresh toolbar button in the explorer browser)
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim objIE As Object
Private Sub Command1_Click()
Set objIE = CreateObject("InternetExpl
objIE.Visible = True
objIE.Navigate2 ("https://www.experts-exchange.com")
End Sub
Private Sub Command2_Click()
objIE.Refresh
End Sub
Private Sub Command3_Click()
objIE.Quit
End Sub
"SHDocVw.InternetExplorer"