Intranet ( within one network ) file usually begins with file://
Internet ( between networks ) file usually begins with http://
Can you prefix the url with file:// and try it?
> Hi Jonathan,
> Thanks for your answer!
[quoted text clipped - 30 lines]
>>
>> http://vbnet.mvps.org/index.html?code/fileapi/fileexists.htm

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
Warrio - 23 Jul 2007 19:30 GMT
I don't have access because of the company's policies... with file://
(and it's an intranet (LAN) even if it starts with http:// you can have
hyperlinks even on not connected computer...)
but file doen't solve my problem..
Thanks anyway!
> Intranet ( within one network ) file usually begins with file://
> Internet ( between networks ) file usually begins with http://
[quoted text clipped - 37 lines]
>>>
>>> http://vbnet.mvps.org/index.html?code/fileapi/fileexists.htm
> Hi Jonathan,
> Thanks for your answer!
>
> I tried the function you advised me, but unfortunately it doesn't work...
> When I try it with an intranet file beginning with an "http://", it return
> FALSE.
It would. It is inly intended to work with files on a local drive, a mapped
network drive or with a UNC path.
> but when I try to open it "manually" with Word, the file is successfully
> opened after a small window saying "Conneting to web server ..."
That is because the file is being downloaded into your temp folder and then
opened by Word. Witrh that downloaded file open, go to the immediate window
in the VBA editor and type the following
? ActiveDocument.Fullname
You will find the location of the doc on your local drive.
If you want to find whether an http url exists, then you need a different
approach, possibly using the Windows API function InternetConnect. I'm not
an expert in this area but if you do a search for that function you will
probably find something.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Warrio - 24 Jul 2007 11:02 GMT
Thanks a lot for your help!
>> Hi Jonathan,
>> Thanks for your answer!
[quoted text clipped - 21 lines]
> an expert in this area but if you do a search for that function you will
> probably find something.