Building block re-use

H

Henning

Hi,

If I create text and define those as building block in Word, is it then
possible to fetch the block via VBA and past them into a template based on
options the user (for example via a check box) has made? Or is it better to
use XML to do this? Any experience or suggestions?

thx in advance

Henning
 
J

Jay Freedman

You can indeed use VBA to retrieve building blocks, provided you know which
file they're stored in, and what category and name they have.

In the VBA help, look up the topic "Working with Building Blocks". Also
visit http://gregmaxey.mvps.org/Word2007_Building_Blocks_&_AutoText.htm for
useful examples.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
H

Henning via OfficeKB.com

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