custom ui editor getting rid of code

K

KAM

I don't know if it something I am doing or not - but it is driving me crazy.

I am using the Custom UI Editor to customize the ribbon in Word 2007. I
create my ribbon and saved to my template. I then opened the template and
added the RibbonControl vba code and a module containg some code for showing
message boxes, etc. Saved the template. All code is present.

Then I went back into the Custom UI Editor to make changes, saved it to the
template, but when I opened the template in Word, all my previous modules and
code are gone.

What am I doing wrong? Help!
 
K

KAM

I *think* I figured it out.

I was leaving the Custom UI Editor open (with the template xml open) while I
making changes. If I close out of the Editor completely, it seems to hold any
vba modules I have added...
 
Top