Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2016, 06:04 AM
jc491's Avatar
jc491 jc491 is offline VBA Word -  Building Block (AutoText) - Array - Replace Text with Specific Building Blocks Windows 10 VBA Word -  Building Block (AutoText) - Array - Replace Text with Specific Building Blocks Office 2016
VBA Novice
VBA Word -  Building Block (AutoText) - Array - Replace Text with Specific Building Blocks
 
Join Date: Sep 2015
Location: UK
Posts: 55
jc491 is on a distinguished road
Default

Hi Graham,
pardon me for not reading your instructions, when code blinds me, so does my ability to read .

I wish to the high stars - Microsoft will sort out the horrendous building block organizer in the next update its long overdue.

I updated
the building block to match the search words

An error popped up here

Code:
Application.Templates(ActiveDocument.AttachedTemplate). _
                        BuildingBlockEntries(Rng.Text).Insert _
                        Where:=Rng, _
                        RichText:=True
The building blocks are in template : Building blocks - as I can see in the organiser


Test Example

Text A1 Replace Building Block - A1

Text A2 Replace Building Block - A2I will download the add in and try the second approach as well
I am indebted to you for your help



Thank you Graham

J
Reply With Quote
Reply

Tags
building block, vba word

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem batch adding autotext using Greg Maxey's Building Blocks Add-In Genuine Gin Word VBA 5 12-16-2015 10:20 AM
Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext sanko787 Mail Merge 1 07-05-2014 09:00 PM
Building blocks show correctly in dropdown, but wrong building block populates in doc wordgirl123 Word 0 10-03-2013 08:30 AM
INSERT building blocks from Quickpart in word jasserin Word VBA 0 06-05-2013 12:55 PM
Word - Attach Building Blocks namedujour Word 0 04-04-2011 09:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:50 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