Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the goBack and goForward methods of a webbrowser in vb 6.0

Status
Not open for further replies.

davidlee42knicks

Programmer
Jul 25, 2007
12
0
0
US
Hi, I have a web browser control on my form which I have used to navigate to pages. I want to add go back and go forward buttons. I have found the goBack and goForward methods - do they require adding any references? I ran my code and received an "automation error, unspecified error." Any help would be greatly appreciated.

Thanks,
Mike
 
This is a forum for VBA coding in Microsoft Office. It appears you are asking about a stand-alone Visual Basic application. I suggest posting here: forum222


-V
 
Hi,

No, actually I am working on a form in Access with VB.

Thanks,
Mike
 
Hi, I have found the answer. Here goes:

me.webBrowser.goBack
me.webBrowser.goForward

If the history has no entries, you will get an automation error. If the history has entries, it works just fine. Now, if I can keep track of the urls visited, I can do error trapping.

Thanks,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top