Manage Learn to apply best practices and optimize your operations.

How to automatically clear the forms cache in Microsoft Outlook

If you use custom forms in Outlook 2003, you may experience the error message: "Outlook cannot open this form." This issue is typically caused by a polluted Microsoft Outlook forms cache. In this tip, contributor explains how to automatically clean your Outlook forms cache using a Visual Basic script.

Microsoft Outlook 2003, up to and including the most recent Microsoft Office 2003 Service Pack, has an issue with custom forms that typically manifests with the error message: "Outlook cannot open this form." Unfortunately, no other real details are provided as to why that is the case.

The culprit of this problem is probably a polluted Microsoft Outlook's form cache that needs to be cleaned out.

This can be done from within Microsoft Outlook itself, but it requires a fair amount of drilling through menus to get to the needed commands. It also has to be done differently if you're using a local .PST file or an Exchange Server public folder, which complicates things yet further. If you're forced to clear the Microsoft Outlook forms cache repeatedly, it becomes even more cumbersome.

Fortunately, Microsoft Outlook MVP Robert Sparnaaij has created a script, written in Visual Basic, that automatically clears the Microsoft Outlook forms cache.

When run, it'll prompt you to close Microsoft Outlook (if you don't, it'll make a best attempt to close Microsoft Outlook by force!), and then erase the files in the path %UserProfile%\Local Settings\Application Data\Microsoft\Forms, which is where the Microsoft Outlook's forms cache is stored. The folder is also deleted for good measure, in the event that there are problems with the forms cache folder because of permissions issues.

Note that if you run this script on a system with an antivirus application that provides live protection, the antivirus program may attempt to stop the script from executing.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.

Do you have comments on this tip? Let us know.

Related information from

  • Tip: Using the /CLEANVIEWS command-line switch in Microsoft Outlook
  • Tip: Better Exchange public folders with custom forms
  • Learning Center: The Microsoft Outlook Toolbox
  • Reference Center: Microsoft Outlook administration tips
  • Reference Center: Exchange Server scripts and programming tips

    Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to If we publish it, we'll send you a nifty thank-you gift.

  • Dig Deeper on Outlook management