Background
Following VBA code will remind you if you are sending an email with empty subject line, or when you forget the attachment. It checks mail body for word "attach" and then confirms if something is really attached. If you attachment is missing, it will pop-up a dialog box.
The setup
- In your Outlook 2003, invoke Visual Basic Editor, either by pressing Alt+F11, or navigating the menu as "Tools->Macro->Visual Basic Editor"
- In the Left hand side "Project" panel, make sure entry named "ThisOutlookSession" is highlighted.
- Copy paste the code given below in the Right hand side Panel.
- Exit out of VB Editor by either Alt+Q or by navigating the menu item File->Close.
Security
- Make sure that the security is set to "High" (Tools->Macro->Security)
- The changes we made will NOT work with High security, so we need to "certify" our code, so that it always works.
- Invoke "selfcert.exe" from "C:\Program Files\Microsoft Office\OFFICE11\SELFCERT.EXE"
- In the dialog that pops up, Type your name.
- Go back to Visual Basic Editor (Alt+F11 from Outlook)
- Navigate to Tools->Digital Signature.
- Click "Choose"
- Select your name, Click "OK"
- Click "OK" to come out of "Digital Signature" dialog.
- Exit out of VB Editor (Alt+Q)
Activating the Macro
- Restart your Outlook
- When asked about macros, select "Enable Macros"
Test
- Try sending an email with empty subject to yourself, to test if everything works.
- Type "attach" or "attached" in email body and send email to yourself without actually attaching any file.
.. finally "The Code"
Please refer to my earlier post here
3 comments:
This is a good idea. I don't know how many times I've sent out an email referencing an attachment and forgotten to include it.
Mark Shead
www.productivity501.com
Awesome tip. Worked great...much appreciated.
I found the code for this fix several places and searched high and low on how to install it (not being familiar with VBA.) I was happy to finally find this information spelled out here.
Unfortunately, the pop up reminder box comes up behind my New email window. (It does lock the mail until "OK" is clicked on the box, so that can serve as a "reminder".)
I know this is an old post, but if anyone knows of a way to get the box to appear on top, I'd appreciate it.
Post a Comment