Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2019, 03:50 AM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default Macro to list building blocks


[Edit: Split from this thread]


Thanks for your reply, after searching Google I found the Macro attached. But it doesn't work for me for some reason. Do you know a similar macro?
Printing a List of Building Blocks (Microsoft Word)

Last edited by Charles Kenyon; 12-09-2019 at 07:56 AM. Reason: Mark as solved
Reply With Quote
  #2  
Old 12-08-2019, 09:07 AM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

That macro gave me 57 pages.
What happened when you ran the macro?
Note it does not actually print the list, it inserts it in the active document.
Reply With Quote
  #3  
Old 12-08-2019, 09:12 AM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Other than the size limitation for a template/document, I know of no limitation.
Note that you can have building blocks in multiple templates. Those templates must be either stored in the Building Blocks folder or loaded as Global Templates.
Where can Building Blocks be stored?


I try to separate my building blocks by purpose. I do that by using:
  1. separete templates
  2. different galleries by type
  3. different categories
  4. useful, meaningful names (never the name assigned by Word as a default)
This makes it much easier to use them.


You can use custom galleries. You can assign keyboard shortcuts and QAT icons. (Shortcuts and icons should be stored in the same template that holds the building blocks.)

Build & Deploy Custom Building Block Galleries by Greg Maxey, MVP
Reply With Quote
  #4  
Old 12-08-2019, 09:21 AM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default

It's showed only a few building blocks 4 or 5, and I have several hundred.
if it could show all the building blocks that was good.
Reply With Quote
  #5  
Old 12-08-2019, 09:28 AM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by yacov View Post
It's showed only a few building blocks 4 or 5, and I have several hundred.
if it could show all the building blocks that was good.
Are those building blocks accessible in your active document? Do they show up in the building blocks organizer?
Reply With Quote
  #6  
Old 12-08-2019, 09:37 AM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default

Yes its show up. the only problem is that few of them are missing in a time.
i will try separate them as you said for a better control.
Reply With Quote
  #7  
Old 12-08-2019, 11:56 AM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

The macro does not list those bb stored in building blocks templates. It shows them from normal.dotm and loaded Add-Ins (and presumably the attached template). It lists templates that have no building blocks. I am in the process of trying to write one that will get them all, but don't hold your breath I am somewhat of a tyro when it comes to coding and I do have a day job.

If you want Alan Wyatt's macro to list your custom buliding blocks stored in Building Blocks.dotx, load that file temporarily as an Add-In. It will then be a member of the vba templates collection in Word.

Last edited by Charles Kenyon; 12-09-2019 at 07:54 AM.
Reply With Quote
  #8  
Old 12-08-2019, 08:51 PM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default

how do i do that?
Reply With Quote
  #9  
Old 12-08-2019, 10:20 PM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by yacov View Post
how do i do that?
Temporarily load it as an Add-In?

The file is likely named Building Blocks.dotx.
That can be found in a profile folder:
c:\Users\{your username}\AppData\Roaming\Microsoft\Document Building Blocks\1033\16\

Once you find it, you could double-click on it to create a new document and run Mr. Wyatt's macro. It would create the list in the new document.

The above location is for English US language Word version 2016 and later.

To temporarily load it as an Add-In, instead, go to the Document Template button on the Developer Tab and use the Add button to add it to the Add-Ins list. It will stay loaded until the next time you start Word.

Last edited by Charles Kenyon; 12-09-2019 at 07:53 AM.
Reply With Quote
  #10  
Old 12-09-2019, 12:43 AM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default

did it. thanks
Reply With Quote
  #11  
Old 12-09-2019, 06:05 AM
Charles Kenyon Charles Kenyon is online now Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Did it get them all for you?
If you want the ones that come with Word, you would add the Built-In Building Blocks.dotx file.
Reply With Quote
  #12  
Old 12-09-2019, 06:13 AM
yacov yacov is offline Macro to list building blocks Windows 10 Macro to list building blocks Office 2016
Competent Performer
Macro to list building blocks
 
Join Date: Oct 2019
Posts: 139
yacov is on a distinguished road
Default

now it is good. it printed all my custom building blocks
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building blocks NorbertM Word 5 11-22-2019 11:25 AM
VBA Word - Building Block (AutoText) - Array - Replace Text with Specific Building Blocks jc491 Word VBA 7 01-03-2016 10:34 PM
Building blocks show correctly in dropdown, but wrong building block populates in doc wordgirl123 Word 0 10-03-2013 08:30 AM
Building Blocks - WHY??? namedujour Word 5 05-03-2011 01:37 PM
Building Blocks in Outlook namedujour Outlook 2 04-06-2011 06:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:47 PM.


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