• Toolbar button for receipt request? (2000/SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Outlook and email programs » Toolbar button for receipt request? (2000/SR-1)

    Author
    Topic
    #1771151

    I’d like to add a button to the message form’s Standard toolbar that turns on the “read receipt requested” feature. This would do the same thing in 1 click as the usual 2-click procedure [Options | Request a read receipt…].

    I’ve explored the toolbar customizations, but it’s not an available option. Is there a macro or something that will do it? Any ideas?

    Viewing 0 reply threads
    Author
    Replies
    • #1790077

      Something like this:

      Dim myMailItem As MailItem
      Set myMailItem = ActiveInspector.CurrentItem
      myMailItem.ReadReceiptRequested = True

      • #1790088

        Thanks for the quick reply, jscher2000!

        I’m sorry to say I’m somewhat of an ingenue when it comes to macros. How exactly would I set this up? Would I create it in VB Editor? Where would I store it? How would I match a button to it?

        Thanks (in advance!)

        • #1790108

          Press Alt-F8 , type a short name for your macro (like ReadRecpt) and click Create. Then input the following code between the Sub and End Sub lines:

          Dim myMailItem As MailItem
          Set myMailItem = ActiveInspector.CurrentItem
          If myMailItem.Sent = True Then
          MsgBox “Cannot change option on sent message.”
          Else
          myMailItem.ReadReceiptRequested = True
          End If
          Set myMailItem = Nothing

          (To protect the integrity of your message store, I disabled the option to change a Sent message.)

          Save, then and close the VB Editor. Open a message, choose Tools, Customize…, click the Commands tab, then click Macros in the left pane. Find your new macro in the right pane and drag it to the menu bar or a toolbar. (If you want to place it on a new toolbar, you need to back up a step and create that from the Toolbars tab.) Click close. To change the name or icon, right-click the button and edit away.

          The new button should appear whenever you are editing a new message. (For some reason, I had to close and restart Outlook, but normally I don’t.) Does this do it?

          • #1790128

            Wow. That’s exactly what I needed — thank you!

            The only enhancement I could think of would be to give the button an “on/off” capability — if the button is “pushed in” the receipt request is on; if it’s “out” the receipt is off. Is such a thing possible?

            (If it’s not, don’t worry. This will do FINE!)

            • #1790137

              I’m sure it is possible, and I sure don’t know how to do it!

            • #1794384

              Yes it is possible to turn on/off.

              In the macro previously supplied, change the line that reads:

              myMailItem.ReadReceiptRequested = True

              to:

              myMailItem.ReadReceiptRequested = Not myMailItem.ReadReceiptRequested

              This will toggle the Read Receipt on/off. You can use the same format to toggle commands generally.

          • #1790173

            This is great! I have one question, though. When I run this macro from an email message, it prompts me to Enable or Disable the macros. Is there any way to make it not do that without setting my Security to low? I guess I just need to know how to make it come from a trusted source.

            • #1790186

              Outlook typically asks once per session, which might be once too many times for you. I do not have the required credentials to sign macros; someone, perhaps Charles Kenyon, posted a message indicating that MS was making it more difficult for individuals to obtain them. It may well be that COM Add-ins are trusted by default, but doing a COM Add-in just for this would be a big effort. Sorry I don’t have a more helpful answer.

            • #1793301

              You could use self.cert to create a certificate just for your machine and sign the code with it. See this page at slipstick for info on how to do this.

              http://www.slipstick.com/dev/vb.htm

            • #1793346

              This thread may be of some use to you. Outlook Security

              I have found that Outlook asks about security every time confused. Any way I hope you get it sorted out. smile

    Viewing 0 reply threads
    Reply To: Toolbar button for receipt request? (2000/SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: