Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-06-2016, 07:11 AM
gmayor's Avatar
gmayor gmayor is offline Creating a (shared!) file with CommandButton placing AutoText into the document Windows 10 Creating a (shared!) file with CommandButton placing AutoText into the document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoText List - Protected Document AJohn403 Word 3 04-20-2015 04:54 PM
Creating a (shared!) file with CommandButton placing AutoText into the document how to easily drop autotext into document Kendel Word 2 02-08-2015 09:50 AM
Creating a (shared!) file with CommandButton placing AutoText into the document I'm having trouble creating a Merge using label form and placing a shape in the text blockie Mail Merge 8 11-13-2013 11:28 PM
Creating a (shared!) file with CommandButton placing AutoText into the document Email Document via Commandbutton aqhibjaveed Word VBA 1 03-25-2013 11:22 PM
Creating a (shared!) file with CommandButton placing AutoText into the document Creating a shared template with selections gmsp26 Word 1 04-14-2011 05:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft