Group: microsoft.public.word.vba.general
From: =?Utf-8?B?SmVhbi1HdXkgTWFyY2ls?=
Date: Friday, February 15, 2008 2:50 PM
Subject: RE: Opening a web page using VB

"halfawake" wrote:

> I have written a script to check if people are opening word documents from
> email. All it really does is check the path, if it is in the temp directory
> it ask them if they want to save the document to the document managment
> system. We recently changed our DM to a web based system. With this I was
> trying to modify my script to save to the new dm. All I really need to do is
> have the script open a .asp web page that has the document path in the url. I
> can format the url I just can't get VBA to open a web page. Not even
> google.com. I looked all over the web ie.. googled it, microsoft.com, and the
> ms vip pages without any luck. I was wondering if anybody knew how to do
> this. Just so you know we use word 2003.

I guess your name is appropriate ;-)
I mean, you did not search very hard... if, as you state,all you want is to
open a web page from VBA, than all you need is:

ActiveDocument.FollowHyperlink ("http://www.google.com")

Safety Articles | Usenet Groups | Usenet News | Bluegrass