vba - Word 2007: Get a list of building blocks? -


i'm wordering if there way (directly or using vba) list of building blocks appear in building blocks organizer, is, names of building blocks, gallery, category, template, behavior, etc. don't want extract auto text parts or that. want able , print complete list of bilding blocks , rest of info dispayed in building blocks organizer.

thanks lot! d

building block entries stored within several word template files. if want iterate on available building blocks, must therefore iterate on loaded word templates. can using following macro:

sub listbuildingblocks()      dim otemplate template     dim obuildingblock buildingblock     dim integer      each otemplate in application.templates         = 1 otemplate.buildingblockentries.count             set obuildingblock = otemplate.buildingblockentries.item(i)             debug.print obuildingblock.name + vbtab _                 + obuildingblock.type.name + vbtab _                 + obuildingblock.category.name + vbtab _                 + otemplate.fullname         next     next  end sub 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -