PDA

View Full Version : Remove the VBA code for last Word document



markqqq
05-09-2013, 09:55 AM
Hi,

When I open a new Word and try to write some VBA code, I found there is some VBA code I wrote for last Word document.

I want to remove them but was wondering if that will destroy the VBA code in the last Word document?

Thank you in advance.

fumei
05-09-2013, 02:37 PM
By default, Word stores VBA code in Normal.dot, NOT in any document. You have to explicitly tell Word to store VBA in a document.

If you in fact write the code in the last document, then removing it will remove it.

markqqq
05-09-2013, 05:00 PM
Thanks a lot for your help!!

macropod
05-10-2013, 03:03 PM
Hint: If you have a document containing code and you want to get rid of all code in it, simply save it in the .docx format.