LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default excel webbrowser

Just discovered this control! It is giving me problems and I cant find any
help.
I have a multitab (2 tabs) form with the second being a WebBrowser.navigate
reference. The web page opens fine. I return to the first tab .. then back
to the web tab and it is blank. After that it I get errors 80004005 which
means I goofed somwhere I guess. This is all of the code i have generated
to try and close and reopen the WebBrowser pushing buttons and going back and
forth between the tabs. I still get errors.

Private Sub CommandButton2_Click() 'tab1 button goes to tab2 webbrowser
WebBrowser1.Navigate "I:\blevins\flutter\Foilsim1\Foil.html"
UserForm1.MultiPage1.Value = 1 'reveal the second tab (0,1)
End Sub

Private Sub CommandButton3_Click() 'tab2 button returns me to tab1 data sheet
WebBrowser1.Quit
UserForm1.MultiPage1.Value = 0 'reveal the first tab (0,1)
End Sub

Is there a proper way to close and restart a webbrowser? I have tried .quit
and .stop with no success. I can't seem to get it. I cant seem to crack
this one.
Appreicate any expert advice ...

Thanks,
Mark


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I call an Excel VBA function from within a WebBrowser control? John Brock Excel Discussion (Misc queries) 0 October 20th 09 02:16 AM
webbrowser - excel - modifications [email protected] Excel Discussion (Misc queries) 1 January 26th 06 04:31 AM
re-direct hyperlink event to WebBrowser Object in Excel [email protected] Excel Programming 4 January 20th 06 12:31 PM
Preventing Excel opened through webbrowser "taking over" other instances of Excel Samuel Jack Excel Programming 1 May 5th 04 11:11 AM
How to open an Excel worksheet in the webBrowser control Gary Excel Programming 0 April 30th 04 05:29 PM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"