Optional Paragraphs - use Building Blocks?

I'm creating a template for a document that has several optional paragraphs.  I know how to easily use a Building Block Content Control for most of them, however, there is one place in the document where you either insert a certain paragraph or you insert nothing at all. 

How can I set up this situation so that if the paragraph isn't needed, then the content control - and the paragraph which contains it - get deleted?

I'm thinking I need to create a procedure for the ContentControlOnExit event, but I'm not exactly sure what that procedure might be.

Any help is greatly appreciated.

Thanks,

Jeri

Answer
Answer

Charles ~

Thank you so much for your help with this.  I did finally get it to work by using a building block galler content control.  If the paragraph isn't needed they select an "empty building block" that actually contains a bookmark. 

When the ContentControlOnExit event occurs Word searches for a ContentControl with the specified title and if the bookmark exists it deletes the content control, the bookmark, and the paragraph.

I probably made it more difficult than it needed to be, but it works!

Thanks again,

Jeri

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated June 20, 2024 Views 869 Applies to: