Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2022, 02:04 AM
elaineAda elaineAda is offline Need help in mapping building blocks Windows XP Need help in mapping building blocks Office 2010
Novice
Need help in mapping building blocks
 
Join Date: Mar 2019
Posts: 25
elaineAda is on a distinguished road
Default Need help in mapping building blocks

I created a form with drop down list and would like the different building blocks when user select the choice from the drop down list. I am not sure how to use the macro for building blocks and how to save the building blocks within the document. Thanks.
Attached Files
File Type: dotm Annex A - macro1.dotm (23.1 KB, 8 views)

Last edited by elaineAda; 04-17-2022 at 02:11 AM. Reason: wrong attachments
Reply With Quote
  #2  
Old 04-18-2022, 03:13 AM
Italophile Italophile is offline Need help in mapping building blocks Windows 11 Need help in mapping building blocks Office 2021
Expert
 
Join Date: Mar 2022
Posts: 537
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

What you want can be achieved by using Building Block Content Controls instead of the drop-down lists.

To save a Building Block select the content that you want it to include. Go To Insert | Quick Parts | Save selection to Quick Part gallery.

In the dialog that appears you will need to specify which gallery and category you want to use. You'll need to create your own categories. This is important as the Building Block Content Controls need to point to a specific gallery and category. You can use the same gallery for all your content, I would suggest using Custom 1.

When a user creates a document from your template, they will see a drop-down list and the item they choose will be inserted into the document.
Attached Images
File Type: png Create New Building Block.png (10.8 KB, 18 views)
File Type: png Content Control Properties.png (19.7 KB, 18 views)
File Type: png Content Control before.png (17.8 KB, 18 views)
File Type: png Content Control after.png (10.4 KB, 18 views)
Reply With Quote
  #3  
Old 04-18-2022, 06:11 AM
elaineAda elaineAda is offline Need help in mapping building blocks Windows XP Need help in mapping building blocks Office 2010
Novice
Need help in mapping building blocks
 
Join Date: Mar 2019
Posts: 25
elaineAda is on a distinguished road
Default

Thanks, it works but it is not what I wanted. I wanted a drop down list that user is able to select if they wanted the section of the form to appear and the selected drop down item is still visible.

For eg,
if user select "Pl indicate relevant experience", Section 1 will appear and wordings on the drop down list is still visible (i.e. the wordings "Pl indicate relevant experience" is the title of the section). Or
if user select "Not in use", Section 2 will appear and wordings on the drop down list "Not In Use" is still there.
I have attached the picture of these scenarios to help in my explanations.

Any help is appreciated. Thanks a lot.
Attached Images
File Type: png RelevantExp .png (21.6 KB, 15 views)
File Type: png RelevantExp - Not In Use.png (12.3 KB, 15 views)
Reply With Quote
  #4  
Old 04-18-2022, 06:22 AM
Italophile Italophile is offline Need help in mapping building blocks Windows 11 Need help in mapping building blocks Office 2021
Expert
 
Join Date: Mar 2022
Posts: 537
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

What appears in the document entirely depends on what you include in the building block.
Reply With Quote
  #5  
Old 04-19-2022, 07:22 AM
elaineAda elaineAda is offline Need help in mapping building blocks Windows XP Need help in mapping building blocks Office 2010
Novice
Need help in mapping building blocks
 
Join Date: Mar 2019
Posts: 25
elaineAda is on a distinguished road
Default

No matter how many times i tried, i just cannot get this macro running. Can anyone let me know what is wrong with my code?

Any help in appreciated.
Attached Files
File Type: dotm Annex A - macro1.dotm (32.4 KB, 8 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in mapping building blocks building blocks limit yacov Word 2 12-09-2019 07:59 AM
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
Need help in mapping building blocks Building Blocks - WHY??? namedujour Word 5 05-03-2011 01:37 PM

Other Forums: Access Forums

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