Create a custom "Send" Button

Status
Not open for further replies.

Stephane

Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Dear All,

In order to track some of the assignments I give to persons, save sent e-mails in a separate folder ("waiting for" not the sent one), categorise them with "waiting for" and have them flagged with a "no date" flag.
This involves however a high numbers of clicks which I would like to avoid.

I already tried things with a quick steps but there the actions only works if I create a new message, not when I forward an existing one (which is then the one flagged, categorised, etc). I also tried rules but this involves creating a bcc message or imputing a special text in the mail, which I would like to avoid.

How could I create a "send button" which would perform all the above actions when pressed ?

Would it be possible to have this button doing the above actions but instead of flagging with "no date", have a window popping up and asking for the delay ?

I'm not so familiar with VBA so sorry if my question is straightforward

Thanks

Stephane
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
These are the properties you need to set:

1. If the folder, where you want to save the message, is in the same store, then set the SaveSentMessageFolder property. Here are some examples for how to use it.

2. Write the category to the Categories property.

3. Here are some examples for how to flag a message for follow-up. It first uses the DateAdd function to add, for instance, seven days to the current date, if you want the message be due in seven days. It then adds a time to the date, and passes the result (that is date & time) to the TaskStartDate and TaskDueDate properties.

To be more flexible you could query both values, that is the number of days to be added and the time, by using the InputBox function.
 

Stephane

Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Dear Michael,

Many thanks for your input but I'm afraid, I will not be able to implement it seen my lack of knowledge.

I started with your second variant for Savesentmail but didn't even succeed in getting that run. For whichever reason, the macro name does not even appear.
Could you maybe provide some more hints towards the implementation ?

Thanks a lot for your help

Stephane
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Macros that take parameters do not appear but can be called by other macros, or by events like the ItemSend event in this case. The given examples will be called automaically when you hit the Send button.

This one can be run manually as it doesn't take any parameters:
Code:
Public Sub WhatEverName()
  'This line calls the other macro and passes the open, active item
  SaveSentMail Application.ActiveInspector.CurrentItem
End Sub
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Create additional custom flag descriptions (other than Send E-Mail, Call etc.) Using Outlook 1
S Create a clickable custom column field Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
G How do I create a custom pick list in VB for an outlook automated email? Outlook VBA and Custom Forms 1
L Create Custom Form Using Outlook 0
Diane Poremsky Create a custom field for Outlook messages Using Outlook 0
Diane Poremsky Create a Custom Numbering Field for Outlook messages Using Outlook 0
I Create custom Outlook 2013 Rule in Office 365 Outlook VBA and Custom Forms 5
T Create custom calendar entry form... Outlook VBA and Custom Forms 3
E Create a URL hyperlink in an Outlook custom form? Outlook VBA and Custom Forms 2
R Can I create custom subgroups on the ribbon? Using Outlook 5
J How to create a user defined dropdown list field for a custom contact form Using Outlook 3
O Outlook 2010 - How to create custom Group By Arrangements for email Using Outlook 3
P Create appointment to custom (shared) outlook calendar Outlook VBA and Custom Forms 3
C How to create a custom 'View Type' Outlook VBA and Custom Forms 7
Q How do I create a custom action for a rule? (Save as "Nfy.MSG") Outlook VBA and Custom Forms 1
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
G Create ordinal numbers for birthday Outlook VBA and Custom Forms 2
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
A How to create fixed signatures for aliases that process through GMAIL? Outlook VBA and Custom Forms 0
P Can I create a Rule that sends me an email when I get a Task? Using Outlook 3
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
B Can I create a local PST file for SPAM on a drive that is usually disconnected? Using Outlook 3
Chiba Create an appointment for all the members Outlook VBA and Custom Forms 1
C Can't create Outlook data file Outlook Wishlist 0
L automaticaly create a teams meeting with a sync Using Outlook 0
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
F How to create phone number as links in notes of Contacts Using Outlook 2
Nessa Can't create new appointment Using Outlook 1
A Create date folder and move messages daily Outlook VBA and Custom Forms 1
C Create new Message with shared contacts & BCC'ing recipients Outlook VBA and Custom Forms 0
O Multiple email accounts - hesitate to create a new profile Using Outlook 3
G Can't create Folder Groups in Outlook 2013 Using Outlook 0
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
R Can not create folder to store specific emails in in Outlook for Mac Using Outlook 1
W Create Search Folder excluding Specific Email Addresses Using Outlook 5
A Outlook macro to create search folder with mail categories as criteria Outlook VBA and Custom Forms 3
K VBA BeforeItemMove event create rule to always move to its folder. Outlook VBA and Custom Forms 4
JackBlack What tools do you use to create the signature for email? Using Outlook 3
Rupert Dragwater How to create a new email with @outlook.com Using Outlook.com accounts in Outlook 32
F Should a new email account also create new contacts Using Outlook 2
R Outlook add-in to create new contact from an email. Using Outlook 0
Tanja Östrand Outlook 2016 - Create Macro button to add text in Subject Outlook VBA and Custom Forms 1
Q Script to create a pst file for Archiving Using Outlook 1
Jennifer Murphy Can I create a Rule with Or'd conditions? Using Outlook 1
D Outlook macros to create meeting on shared calendar Outlook VBA and Custom Forms 10

Similar threads

Top