Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Before Send Email insert Attachment Path in Body (http://www.outlookbanter.com/outlook-vba/37895-before-send-email-insert-attachment.html)

Irene January 16th 07 02:25 PM

Before Send Email insert Attachment Path in Body
 
Is there a way using VBA code, for all outgoing emails to - Get the file path
for the attachment and insert it in the body before it is send out? Kind of a
combination or automation of insert link and insert attachment, using one
click

Thanks,

Irene


Sue Mosher [MVP-Outlook] January 16th 07 02:51 PM

Before Send Email insert Attachment Path in Body
 
An attachment has no file path, unless you inserted it as a link. And in that case, what's the point of having both the text and the link?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Irene" wrote in message ...
Is there a way using VBA code, for all outgoing emails to - Get the file path
for the attachment and insert it in the body before it is send out? Kind of a
combination or automation of insert link and insert attachment, using one
click

Thanks,

Irene


Ken Slovak - [MVP - Outlook] January 16th 07 03:04 PM

Before Send Email insert Attachment Path in Body
 
You could use Attachment.FileName and .PathName to try to get to the
original attachment file and then read it as a text stream and insert that
into the email. Of course you'd have to distinguish attached Outlook items,
pictures and so on from true files. Also, some files don't make sense when
read as pure bytes, for example Word document files or Excel XLS files.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Irene" wrote in message
...
Is there a way using VBA code, for all outgoing emails to - Get the file
path
for the attachment and insert it in the body before it is send out? Kind
of a
combination or automation of insert link and insert attachment, using one
click

Thanks,

Irene



Irene January 17th 07 09:34 PM

Before Send Email insert Attachment Path in Body
 
aha, that is what I noticed. I know it sounds point less, but the client is
always right:( . Is there away to automate the hyperlink dilog box to always
open up to the same place? I guess i am just going to let them now.

Thanks for the help

"Sue Mosher [MVP-Outlook]" wrote:

An attachment has no file path, unless you inserted it as a link. And in that case, what's the point of having both the text and the link?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Irene" wrote in message ...
Is there a way using VBA code, for all outgoing emails to - Get the file path
for the attachment and insert it in the body before it is send out? Kind of a
combination or automation of insert link and insert attachment, using one
click

Thanks,

Irene



Sue Mosher [MVP-Outlook] February 1st 07 01:08 AM

Before Send Email insert Attachment Path in Body
 
No, you can't automate the dialog used to insert the hyperlink.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Irene" wrote in message ...
aha, that is what I noticed. I know it sounds point less, but the client is
always right:( . Is there away to automate the hyperlink dilog box to always
open up to the same place? I guess i am just going to let them now.

Thanks for the help

"Sue Mosher [MVP-Outlook]" wrote:

An attachment has no file path, unless you inserted it as a link. And in that case, what's the point of having both the text and the link?



"Irene" wrote in message ...
Is there a way using VBA code, for all outgoing emails to - Get the file path
for the attachment and insert it in the body before it is send out? Kind of a
combination or automation of insert link and insert attachment, using one
click

Thanks,

Irene




All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com