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

Create email with body and doc attachment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 18th 07, 01:52 AM posted to microsoft.public.outlook.program_vba
ms
external usenet poster
 
Posts: 1
Default Create email with body and doc attachment

I am having alot of problems with finshing this task...i have read alot
of post and i cant seem to find the one that will work for me and i
dont know VBA enough to manipulate it enough...

I am trying to create a VBA script for sending my resume.....I go to a
job site, see a email link for a job i would like to apply to and i
click the link, an outlook email opens up with the To: address fill out
and the subject as the job title (i dont need to worry about these
steps)

I want to create a keyboard command to attach "myresume.doc" file and
to enter text into the body of the email.

everything i find is more complex then this and i cant seem to break it
down for my use.. anyhelp? thanks.

Ads
  #2  
Old January 18th 07, 05:56 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Create email with body and doc attachment



Simply add this to your VBA project:

Public Sub MyResume()
Dim Mail as Outlook.MailItem

Set Mail=Application.ActiveInspcetor.CurrentItem
Mail.BOdy="your text"
Mail.Attachments.Add "d:\your filedoc"
End Sub

Then open an e-mail and customize the toolbar, add a button that calls the
macro.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 17 Jan 2007 17:52:03 -0800 schrieb ms:

I am having alot of problems with finshing this task...i have read alot
of post and i cant seem to find the one that will work for me and i
dont know VBA enough to manipulate it enough...

I am trying to create a VBA script for sending my resume.....I go to a
job site, see a email link for a job i would like to apply to and i
click the link, an outlook email opens up with the To: address fill out
and the subject as the job title (i dont need to worry about these
steps)

I want to create a keyboard command to attach "myresume.doc" file and
to enter text into the body of the email.

everything i find is more complex then this and i cant seem to break it
down for my use.. anyhelp? thanks.

 




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
parce txt doc to become a merge doc with email address. NannaLuvs Outlook - Using Forms 0 July 12th 06 04:26 PM
Can I display a flyer (.doc) as the body of my email? Jan Outlook Express 2 June 22nd 06 02:45 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
Embed an image in rtf doc (appointment or email body) Sue Mosher [MVP-Outlook] Outlook and VBA 0 February 1st 06 04:20 PM
Attachment does not show on header but in message body when create new email Johnny Chow Outlook - General Queries 2 January 30th 06 10:47 PM


All times are GMT +1. The time now is 06:10 AM.


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.