Troubleshooting

My Macros Won't Run

graphics/troubleshoot_icon.jpg

When I try to run my first procedure, I receive a message about the macros in my project being disabled. How do I fix this?

When you install Outlook, your macro security is set to high by default. This is a very good setting because it protects you from several types of viruses. Unfortunately, it also prevents you from running any VBA code within Outlook. To change this setting, select Tools, Macro, Security. You can choose from high, medium, or low security. If you change the setting to Medium, you'll receive the message in Figure 33.12 every time you load Outlook.

Figure 33.12. You must choose whether to enable or disable macros in your Outlook session.

graphics/33fig12.gif

You can always enable macros, but clicking this message every time you load Outlook might be a bit annoying. You can get rid of this message completely by setting your macro security to Low. However, doing so is not recommended because it can leave your computer vulnerable to viruses.

The best solution is to obtain a digital certificate and sign your Visual Basic Project file. You can obtain a digital certificate from authorities such as Thawte and VeriSign. If you don't want to spend the money to obtain a commercial digital certificate, the Office 2003 CD provides a free personal digital certificate. Simply browse the Office CD for SelfCert.exe. It's very easy to use to create your own personal digital certificate. After you create a digital certificate, sign your VBA Project file by selecting Tools, Digital Signature from within the VBA editor. You can click Choose to select a valid digital signature. Select your certificate and click twice to sign your project.



Special Edition Using Microsoft Office Outlook 2003
Special Edition Using Microsoft Office Outlook 2003
ISBN: 0789729563
EAN: 2147483647
Year: 2003
Pages: 426

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net