View Single Post
 
Old 07-06-2016, 07:11 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Don't even think of sharing your normal template. It is a personal and single user file that is not intended to be shared.

Create a new template. Copy your macros and building blocks to it, save it as macro enabled then supply that template as an add-in. Include a ribbon to call your macros and make it even more useful.

The code to call a building block from that template would be

Code:
Application.Templates(ThisDocument.FullName).BuildingBlockEntries("Bio").Insert Where:=Selection.Range, RichText:=True
The attached should provide a clue.

Put it in the Word startup folder with Word closed - If you have not changed the preferred startup folder it can be located (in English language versions of Windows) by typing
%appdata%\Microsoft\Word\Startup
in the Windows Explorer Address bar and pressing Enter.
Attached Files
File Type: dotm MyBlocks.dotm (88.7 KB, 19 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote