Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

send as link

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sean Murdoch - 20 Jan 2005 23:07 GMT
Hi there,

I have written some vba and put it into normal.dot.  When
a user wants to send a file to another internal user, they
press a tool bar icon and it creates an email message and
inserts the fullname and path for that word doc.  

.HTMLBody = vbCrLf & vbCrLf & vbCrLf & "<a
href=""file:///" & activedocument.FullName & """>" &
activedocument.FullName & "</a>"

My problem is, when the receiver clicks on the link, it
opens the word doc in I.E and not Winword.  
How can I make it that the link opens the file in word
only ?
Thanks
Sean
Peter - 21 Jan 2005 20:43 GMT
> Hi there,
>
[quoted text clipped - 13 lines]
> Thanks
> Sean

Send it formatted like so: \\servername\foldername\documentname.doc.  No anchor tags.
Any M$ e-mail client (and possibly others) should automatically turn that into a link that will directly open the document.
This will work only on the LAN, not across the internet, but then the file:/// link has those restrictions as well.

hth,

-Peter
anonymous@discussions.microsoft.com - 23 Jan 2005 23:42 GMT
thanks very much
Sean
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.