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

Macro to speed email creation



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 13th 10, 11:47 AM
steve sharpe steve sharpe is offline
Junior Member
 
First recorded activity at Outlookbanter: May 2010
Posts: 6
Default Macro to speed email creation

I need to use outlook to send the same pdf file as an attachment to any one who requests it. All I want to do is this. After the new mail form is launched (by clicking on the recipient's email address) I want a button, or something, that will automatically insert the subject and body text (which will always be the same for every mail) attach the pdf (which will always have the same filename and be stored in the same location), and send the mail.

I'm sure this is very easy and that I'm missing something obvious but I've searched for hours and can't find what I need. Any help would be very much appreciated.
Ads
  #2  
Old May 14th 10, 09:21 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Macro to speed email creation



You can access the email via
Application.ActiveInspector.CurrentItem

It has a Body, and a Subject property, and an Attachments.Add funtion. For
an example see the VBA help file.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en



Am Thu, 13 May 2010 10:47:07 +0100 schrieb steve sharpe:

I need to use outlook to send the same pdf file as an attachment to any
one who requests it. All I want to do is this. After the new mail form
is launched (by clicking on the recipient's email address) I want a
button, or something, that will automatically insert the subject and
body text (which will always be the same for every mail) attach the pdf
(which will always have the same filename and be stored in the same
location), and send the mail.

I'm sure this is very easy and that I'm missing something obvious but
I've searched for hours and can't find what I need. Any help would be
very much appreciated.

  #3  
Old May 17th 10, 01:04 PM
steve sharpe steve sharpe is offline
Junior Member
 
First recorded activity at Outlookbanter: May 2010
Posts: 6
Default

Hello Michael

I'm still stuck. Thankyou for your reply which has enabled me to write a macro that works but I can't find a way to attach it to a button on the email ribbon. Since I only want a short message to be automated it does not save time if I have to open developer and run the macro manually.
Is there a way to but a button on the message ribbon that will run the macro directly? I still feel like I'm missing something... Thankyou for your help. I'm a complete novice at this stuff.

Best regards

Steve


post
Quote:
Originally Posted by Michael Bauer [MVP - Outlook] View Post
You can access the email via
Application.ActiveInspector.CurrentItem

It has a Body, and a Subject property, and an Attachments.Add funtion. For
an example see the VBA help file.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en



Am Thu, 13 May 2010 10:47:07 +0100 schrieb steve sharpe:

I need to use outlook to send the same pdf file as an attachment to any
one who requests it. All I want to do is this. After the new mail form
is launched (by clicking on the recipient's email address) I want a
button, or something, that will automatically insert the subject and
body text (which will always be the same for every mail) attach the pdf
(which will always have the same filename and be stored in the same
location), and send the mail.

I'm sure this is very easy and that I'm missing something obvious but
I've searched for hours and can't find what I need. Any help would be
very much appreciated.
  #4  
Old May 18th 10, 08:54 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Macro to speed email creation



For instance, for OL07 right click the toolbar of the email window, then
Edit Quick Access Toolbar (or similar). Select macros, then drag the macro's
name to the pane right hand.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Mon, 17 May 2010 12:04:22 +0100 schrieb steve sharpe:

Hello Michael

I'm still stuck. Thankyou for your reply which has enabled me to write
a macro that works but I can't find a way to attach it to a button on
the email ribbon. Since I only want a short message to be automated it
does not save time if I have to open developer and run the macro
manually.
Is there a way to but a button on the message ribbon that will run the
macro directly? I still feel like I'm missing something... Thankyou for
your help. I'm a complete novice at this stuff.

Best regards

Steve


post 'Michael Bauer [MVP - Outlook Wrote:
;348866']You can access the email via
Application.ActiveInspector.CurrentItem

It has a Body, and a Subject property, and an Attachments.Add funtion.
For
an example see the VBA help file.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en



Am Thu, 13 May 2010 10:47:07 +0100 schrieb steve sharpe:
-
I need to use outlook to send the same pdf file as an attachment to
any
one who requests it. All I want to do is this. After the new mail
form
is launched (by clicking on the recipient's email address) I want a
button, or something, that will automatically insert the subject and
body text (which will always be the same for every mail) attach the
pdf
(which will always have the same filename and be stored in the same
location), and send the mail.

I'm sure this is very easy and that I'm missing something obvious but
I've searched for hours and can't find what I need. Any help would be
very much appreciated.-

  #5  
Old May 18th 10, 03:57 PM
steve sharpe steve sharpe is offline
Junior Member
 
First recorded activity at Outlookbanter: May 2010
Posts: 6
Default

Hi Michael

Thanks very much, You solved my problem.

Best regards

Steve

Quote:
Originally Posted by Michael Bauer [MVP - Outlook] View Post
For instance, for OL07 right click the toolbar of the email window, then
Edit Quick Access Toolbar (or similar). Select macros, then drag the macro's
name to the pane right hand.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Mon, 17 May 2010 12:04:22 +0100 schrieb steve sharpe:

Hello Michael

I'm still stuck. Thankyou for your reply which has enabled me to write
a macro that works but I can't find a way to attach it to a button on
the email ribbon. Since I only want a short message to be automated it
does not save time if I have to open developer and run the macro
manually.
Is there a way to but a button on the message ribbon that will run the
macro directly? I still feel like I'm missing something... Thankyou for
your help. I'm a complete novice at this stuff.

Best regards

Steve


post 'Michael Bauer [MVP - Outlook Wrote:
;348866']You can access the email via
Application.ActiveInspector.CurrentItem

It has a Body, and a Subject property, and an Attachments.Add funtion.
For
an example see the VBA help file.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en



Am Thu, 13 May 2010 10:47:07 +0100 schrieb steve sharpe:
-
I need to use outlook to send the same pdf file as an attachment to
any
one who requests it. All I want to do is this. After the new mail
form
is launched (by clicking on the recipient's email address) I want a
button, or something, that will automatically insert the subject and
body text (which will always be the same for every mail) attach the
pdf
(which will always have the same filename and be stored in the same
location), and send the mail.

I'm sure this is very easy and that I'm missing something obvious but
I've searched for hours and can't find what I need. Any help would be
very much appreciated.-
 




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
Macro creation for Outlook insert subject damadhatter Outlook and VBA 1 August 6th 09 09:06 PM
Set off VBA macro on email receipt then that macro accesses the emailcontent [email protected] Outlook and VBA 3 February 5th 09 01:14 AM
Macro creation involving rules off/on Mike Outlook and VBA 1 October 15th 07 03:47 PM
Differentiate between drag & drop email task creation and normal task creation Mohit Add-ins for Outlook 1 April 18th 07 06:54 AM
Macro Creation Jim Patterson Outlook and VBA 1 February 1st 06 06:23 PM


All times are GMT +1. The time now is 08:39 PM.


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