Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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):
drive:\Users\<user>\AppData\Roaming\Microsoft\Outlook

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.