Tacking Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am using Microsoft Outlook 2003. I want to be able to have a one-button
click tracking option. Some of the emails I send I want tracked but others I
don't. Rather than going through 5 or 6 different screens everytime, I would
like to be able to click a button and toggle tracking on and off.

Is this possible? If so, can someone help me? I don't know much about VBA
programming. Thanks for any information in advance!
 
You can use this macro. Open the Visual Basic Editor (ALT+F11) and copy it
into the ThisOutlookSession module that you can open via the Project Explorer
(F4). Save the project, then enter toolbar customize mode from a new e-mail
message (Tools - Customize menu). Bind this macro to a new custom toolbar
button by selecting Macros in the Categories list then select the macro in
the Command list and drag it to a toolbar. When you click the button it will
toggle both "Request a read receipt for this message" and "Request a delivery
receipt for this message" to true.

Sub RequestReadAndDeliveryReports()
Dim objMailItem As Outlook.MailItem

If ActiveInspector Is Nothing Then Exit Sub
If ActiveInspector.CurrentItem.Class <> olmail Then Exit Sub

Set objMailItem = ActiveInspector.CurrentItem

objMailItem.ReadReceiptRequested = True
objMailItem.OriginatorDeliveryReportRequested = True

Set objMailItem = Nothing
End Sub
 
Thank you very much for the quick response. I am having one problem though.
When I enter toolbar customize mode from a new e-mail to bind the macro to a
new custom toolbar button the macro doesn't show up in the list. Does anyone
have any suggestions as to why? Thanks again for any help!
 
Just to make sure i'm reading this correctly, I am supposed to create the
macro in Outlook, then open up a new message (opens the editor, which is Word
in my case) go to customize and then click macros. The macro should be listed
there and I am supposed to place it in the toolbar of the editor (Word).

If the above is correct, the macro does not show up in the list.

I am able to find and add the macro to my Outlook toolbar (but it still
doesn't work), but not the word toolbar in the new message window.

Do you (or does anyone) have any other ideas?

Thanks again for all your help!
 
I have the same problem....

If you create a macro from the Main Outlook window, it does not show up
as a macro you can add to the toolbar that is attached to a message
window ( the window you get when you click "new mail message". I do
see you can create a macro in the mail message if you click into the
body section, and the choose Macro from Tools. But it does nto have
the same functionality as the main Outlook window, but for your
purposes it may work.

I would love to know if there is a way to add a macro created in the
Main Outlook window to a button on the "mail message" toolbar - the
toolbar on teh message window itself that pops up when you click "New
Mail Message"
 
this is a very good question and one that I am struggling with also: how do
you add a new button to a new message that links to a ThisOutlookSession
macro. Are there any sharpies out there that can help?
 
View | Toolbars | Customize. Drag your macro to the toolbar from the Commands tab.
 
Thanks. Initially the list was blank, but then I made the macro Public and
that worked nicely.
 
Back
Top