WebBrowser ExecWB failed

J

John

Office Professional 2003

I have a WebBrowser control called ctlWebBrowser in a Word form.
It gives a runtime error of Method ExecWB of object failed.

Private Sub btnTransfer_Click()
Call ctlWebBrowser.ExecWB(OLECMDID_OPEN, OLECMDEXECOPT_PROMPTUSER)
End Sub

It also doesn't like
Call ctlWebBrowser.ExecWB(cmdID:=OLECMDID_SELECTALL,
cmdexecopt:=OLECMDEXECOPT_DONTPROMPTUSER)

Is there something I need to setup to make the ExecWB work? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top