How to get a reference to Word.BuildingBlocks interface on the fl...
hi. Everyone.
How can I add a building block to a repository named Builging Blocks.dotx on the fly.
I tried to get a reference to Word.BuildingBlocks interface, but I couldn't.
I worked with Vsto3 cypress.
Jeon
Hi Jeon
You want the ADD method of the BuildingBlockEntries collection.
Start Word. Press Alt+F11 to go into the VBA Editor. Press F2 to start the Object Browser. Type BuildingBlockEntries into the "Search" box, then press ENTER. From the "Members" list select Add then press F1 to open the context sensitive Help (make sure you're connected to the Internet - currently the Help is only available on-line).
-- Cindy Meister (Word MVP)
Cindy Meister
Hi. Cindy
Your reply were very helpful for me. Thanks very much.