Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a VB macro in Outlook 2007 and I no longer need it. I want to remove it from Outlook. How can I do this?

To create a macro you just hit Alt+F11 and up pops the editor. You enter code and once I restart Outlook it's now enabled. I cannot work out how to undo this. Even if I delete the actual code from the editor the macro is still there and I get macro warnings from it.

What can I do?

share|improve this question
Have you tried to delete it from the Macro Window (Alt+F8)? Also, when you deleted it from VBA editor did you click the save icon? Any additional code in a Module or in ThisSession? – CharlieRB Feb 8 '13 at 20:51
up vote 3 down vote accepted

Just rename or move the applicable VBA or Macros files as detailed in the article.

For Outlook 2007 on Vista/7/8:

Macros and VBA programs (VbaProject.otm):

where drive is e.g. C

If you don't care about ANY of the data contained within the VbaProject.otm file, then delete the file. Otherwise just move it into another place that isn't that directory and it should stop telling you you have macros.

share|improve this answer
Thank you. This is exactly what I was looking for. – Johnny Maelstrom Feb 12 '13 at 18:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .