A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Before Send Email insert Attachment Path in Body



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 07, 02:25 PM posted to microsoft.public.outlook.program_vba
Irene
external usenet poster
 
Posts: 10
Default 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

Ads
  #2  
Old January 16th 07, 02:51 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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

  #3  
Old January 16th 07, 03:04 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #4  
Old January 17th 07, 09:34 PM posted to microsoft.public.outlook.program_vba
Irene
external usenet poster
 
Posts: 10
Default 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


  #5  
Old February 1st 07, 01:08 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I insert a contact detail from a email attachment chilli hot Outlook - Using Contacts 1 October 29th 06 02:15 PM
Insert word document/Bookmark into email body paul Outlook and VBA 4 September 22nd 06 01:45 PM
Send an HTML in the body of an e-mail NOT as an attachment rachel Outlook - General Queries 1 July 28th 06 06:25 PM
insert as text (to insert html into email body) Iona Outlook - General Queries 1 July 13th 06 12:10 PM
adding an attachment to a new email goes into the body of the emai jannetta pincusi Outlook - Using Forms 1 February 15th 06 01:31 PM


All times are GMT +1. The time now is 05:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.