Sending a URL to IE from a Form button

V

vnormth

I'm trying to create a Form button that sends a URL to IE and makes IE the
active application. I can find nothing in the documentation that shows this.


(=DDESend displays a #Name? error in a text box.)

MANY thanks!
 
D

Daniel

Application.FollowHyperlink "http://www.google.com"

Application.FollowHyperlink will open any file in the default program for
that file type on your machine. So if IE is your default navigator it will
be used to view any webpage passed to it.
 
V

vnormth

Awesome...thank you! Is there a way I can pass this to an already open
instanec? I need to by-pass a login.asp page at the deistination page.
 
D

Daniel

In that case you are best to look into using an ocxWebBrowser (from your more
controls - also accessible through tools-activex controls...) in your form,
navigate to the login page (and authenticate) and then pass any url you want
using code like:

Me.ocxWebBrowser.Navigate "http://www.google.com"

where ocxWebBrowser is the name that you attribute to your ocxWebBrowser
control.
--
Hope this helps,

Daniel P
 
Top