Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 01-05-2020, 02:47 PM
proking proking is offline Code line for adding Building Blocks to a macro in Visual Basic Windows 10 Code line for adding Building Blocks to a macro in Visual Basic Office 2019
Novice
Code line for adding Building Blocks to a macro in Visual Basic
 
Join Date: Jan 2020
Posts: 5
proking is on a distinguished road
Smile

Quote:
Originally Posted by gmaxey View Post
Any place in the macro you currently have before the line:
Code:
Application.Templates( _
        "C:\Users\cking\AppData\Roaming\Microsoft\Docu  ment Building Blocks\1033\16\Building Blocks.dotx" _
        ).BuildingBlockEntries("OutOfOrder").Insert Where:=Selection.Range, _
THANK YOU!!!!!!!
It worked!!!! I had tried it before I responded, but I had put in Template.LoadBuildinglocks (Leaving off the s in Templates.) when I put it in correctly it worked.
Again Thank you so much.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code line for adding Building Blocks to a macro in Visual Basic Macro to list building blocks yacov Word VBA 11 12-09-2019 06:13 AM
Need help with Visual Basic for Presentations to make a Macro Edward222 PowerPoint 0 05-30-2017 03:13 PM
Problem batch adding autotext using Greg Maxey's Building Blocks Add-In Genuine Gin Word VBA 5 12-16-2015 10:20 AM
Building blocks show correctly in dropdown, but wrong building block populates in doc wordgirl123 Word 0 10-03-2013 08:30 AM
Code line for adding Building Blocks to a macro in Visual Basic Visual basic code for Word 2003 template KateAus Word VBA 4 09-09-2012 08:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:52 PM.


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