Deleting combo boxes causes the doc to crash

J

Jim

I have created a document that populates several combo
boxes upon initialization. In the process of modifying the
document's format, I deleted one of my combo boxes, and
the respective code behind that box. Once I do that the
file becomes corrupted and won't even open. The Program
Error message reads, "WINWORD.exe has generated errors and
will be closed by Windows. You will need to restart the
program. An error log is being created." Can someone
advise what the appropriate way to delete a combo box is?

Thanks
 
C

Cindy M -WordMVP-

Hi Jim,
I have created a document that populates several combo
boxes upon initialization. In the process of modifying the
document's format, I deleted one of my combo boxes, and
the respective code behind that box. Once I do that the
file becomes corrupted and won't even open. The Program
Error message reads, "WINWORD.exe has generated errors and
will be closed by Windows. You will need to restart the
program. An error log is being created." Can someone
advise what the appropriate way to delete a combo box is?
I think we need more information, starting with the version
of Word involved.

You say the code that triggers when the document opens
populates the combo boxes? And is this the same code that
also deletes them? Or is this a different procedure, run
after the other procedure has completely finished?

Do you have a specific reason why you're using a a combobox
from the Controls toolbox rather than a form dropdown field?

Could you please post the (relevant sections) code where you
perform the deletion? What is triggering this code to
execute?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top