Document Editing Problems

How to Show Hidden Building Block Text Elsewhere in Word

Bushra ParveenBushra Parveen Oct 28, 2026 868 views

Question details

The user needs to display hidden text from a selected building block at another location within a Word quotation template.

How to Show Hidden Building Block Text Elsewhere in Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Creating automated quotation templates that reuse and display specific hidden text blocks across multiple document sections.
Observed behavior
REF fields cannot directly pull content from a building block unless the content is first inserted into the document and bookmarked.
Before you start

Ensure that the Developer tab is enabled in Word to access VBA and bookmark features, and save your template as a macro-enabled document (.docm).

Solution 1Recommended

Use Bookmarks and REF Fields with VBA

The most reliable method to display building block text elsewhere is to insert it, bookmark it, and reference it using REF fields updated by a macro.

REF fields can only display text that is already present and bookmarked in the document. They cannot directly extract data from an uninserted building block.

Note that by design, a .docm file cannot store building blocks itself; they must be stored in a separate template (.dotx or .dotm).

1
Insert the building block

Insert the selected building block into a temporary or target range in your document.

2
Bookmark the text

Select the required text that was just inserted and assign a Bookmark by navigating to Insert > Bookmark.

3
Insert a REF field

Navigate to the location where you want the text to appear, press Ctrl+F9 to insert field brackets, type 'REF [YourBookmarkName]', and press F9 to update.

4
Automate with VBA

Write a VBA macro to automate the insertion, bookmarking, and updating of the REF fields when the quotation template is generated.

Use Bookmarks and REF Fields with VBA
Macro Updating: Your macro must explicitly update the REF fields after the building block is inserted so the new text appears in all referenced locations.
Simplify Document Automation

Use WPS Writer to Link and Display Text Across Documents

WPS Writer provides robust tools for bookmarks and cross-references, allowing you to easily reuse and display specific text blocks throughout your quotation templates without relying on complex VBA macros. It is fully compatible with Microsoft Word formats.

  1. 1. Highlight the text: Open your template in WPS Writer and highlight the text you want to reuse.
  2. 2. Create a bookmark: Go to the 'Insert' tab and click 'Bookmark' to assign a unique name to the selected text.
  3. 3. Navigate to the target location: Move your cursor to the location in the document where you want the hidden text to appear.
  4. 4. Insert a cross-reference: Click 'Cross-reference' under the 'Insert' or 'References' tab, select your bookmark, and insert it to link the text.
Free and lightweight alternative to Microsoft WordHighly compatible with .docx and .doc formatsIntuitive bookmark and cross-reference toolsBuilt-in AutoText for quick content insertion
microsoft office alternative - wps office

Frequently Asked Questions

Can a REF field pull text directly from an uninserted building block?

No, a REF field cannot directly retrieve content from a building block. The content must first be inserted into the document and bookmarked before the REF field can display it.

Why can't I save building blocks in a .docm file?

By design in Microsoft Word, building blocks cannot be stored directly within a standard macro-enabled document (.docm). They must be saved in a template file, such as a .dotx or .dotm file.

How do I update REF fields automatically after inserting a building block?

You can update REF fields automatically by writing a VBA macro that selects the document content and calls the 'Fields.Update' method, or manually by selecting the text and pressing F9.