Question

Lauro2 on Fri, 08 Apr 2016 14:51:55


Hi,

I'd like to insert in my template a Content Control Building Block Gallery form where the user can choose a Custom Footer.

Neither manually neither by code I can set  wdTypeCustomFooters as BuildingBlockType. When I try it by code, error 6263 is raised.

I was thinking of a workaround like this:

(note: some CustomFooters are created by me, other are created by the user using a clone of the standard way)

When I or the user are making a new custom Footer; two copies of it are created; one in CustomFooters, the other in wdTypeCustomX.

So I'm able to insert the copy in wdTypeCustomX.

Do you see big problems, with this solution?

Do you suggest me something else?

Thanks, Lauro

Replies

Greg Maxey on Fri, 08 Apr 2016 15:42:02


Lauro,

The only problem I could see is the possibility exists that you or one of the other users will have one or more building blocks defined in wdTypeCustomX either in the current or some other template loaded in the templates collection that are not intended as "Custom Footers".

A possible alternative (but requires VBA and a macro enabled template) is to use a rich text CC OnEntry event to display a userform listing only true CustomFooter gallery building blocks and then insert the selected building block in the rich text CC range.

 

Lauro2 on Mon, 18 Apr 2016 16:23:49


thanks Greg.

Sorry I didn't say it earlier.

Lauro