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
Sorry.. Missed Error Desc in the post below. Error: An error occurred in : Method 'Navigate' of object 'IWebBrowser2' failed "Kishore" wrote: > 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 >