Discussion:
send as link
(too old to reply)
Sean Murdoch
2005-01-20 23:07:59 UTC
Permalink
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
2005-01-21 20:43:52 UTC
Permalink
Post by Sean Murdoch
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
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
a***@discussions.microsoft.com
2005-01-23 23:42:17 UTC
Permalink
thanks very much
Sean

Loading...