Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2008

Tip: Looking for answers? Try searching our database.

IWebbrowser2.Navigate Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kishore - 04 Jan 2008 12:11 GMT
Hi There

New Baby In Town :(

I’m getting the following error when I try to use Navigate Method of
IWebbrowser2 control.

The problem seems to persist only in 1 users PC. Other PCs its working fine L

Can you check with your tech team there ??

Find below code for navigation.

Note : The below method is called on Click on a Tool Bar Button in MS-WORD

Sub OpenIE(bytData() As Byte, sNavigateURL As String)
  Dim objBrowser As Object
  Set objBrowser = CreateObject("InternetExplorer.Application")
  objBrowser.AddressBar = False
  objBrowser.MenuBar = False
  objBrowser.StatusBar = True
  objBrowser.ToolBar = False
  objBrowser.Width = 790
  objBrowser.Height = 550
  objBrowser.Visible = True
  Call objBrowser.navigate(sNavigateURL, Nothing, wcParent, bytData)
  Set objBrowser = Nothing
Exit Sub
ErrorHandler:
  MsgBox "An error occurred in " & wcMethodName & ": " & Err.Description &
" [" & Err.Number & "]", vbExclamation
End Sub
Kishore - 04 Jan 2008 12:16 GMT
Sorry.. Missed Error Desc in the post below.
Error: An error occurred in : Method 'Navigate' of object 'IWebBrowser2'
failed

> Hi There
>
[quoted text clipped - 28 lines]
> " [" & Err.Number & "]", vbExclamation
>  End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.