Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2025, 04:30 PM
bacdh52 bacdh52 is offline Apply underline a text formatting Windows 11 Apply underline a text formatting Office 2019
Novice
Apply underline a text formatting
 
Join Date: Mar 2025
Posts: 4
bacdh52 is on a distinguished road
Default Apply underline a text formatting


hello
i have issue with mail merge. after mail merge
I have a table as bellow

Category Data Spec
name 1 80 90~100
name 2 90 90~100
name 3 100 90~100
name 4 110 90~100
name 5 70 90~100

With data outspec, I want underline text as

Category Data Spec
name 1 80 90~100
name 2 90 90~100
name 3 100 90~100
name 4 110 90~100
name 5 70 90~100

Please help me
thank you very much
Reply With Quote
  #2  
Old 03-26-2025, 11:15 PM
macropod's Avatar
macropod macropod is offline Apply underline a text formatting Windows 10 Apply underline a text formatting Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use a compound field coded as:
{=({MERGEFIELD Data}<90)+({MERGEFIELD Data}>110) \# "'{MERGEFIELD Data \# 0}';;'{MERGEFIELD Data}'"}
or
{=(«Data»<90)+(«Data»>110) \# "'{MERGEFIELD Data \# 0}';;'«Data»'"}
Note the underlined 0.

Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac or, if you’re using a laptop, you might need to use Ctrl-Fn-F9); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. Likewise, the chevrons (i.e. '« »') are part of the actual mergefields - which you can insert from the 'Insert Merge Field' dropdown (i.e. you can't type or copy & paste them from this message, either). The spaces represented in the field constructions are all required.

For a macro to convert the above field code representation into a working field code, see Convert Text Representations of Fields to Working Fields in the Mailmerge Tips and Tricks 'Sticky' thread at the top of this forum: https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-27-2025, 08:15 AM
bacdh52 bacdh52 is offline Apply underline a text formatting Windows 11 Apply underline a text formatting Office 2019
Novice
Apply underline a text formatting
 
Join Date: Mar 2025
Posts: 4
bacdh52 is on a distinguished road
Default Please hepl me more

Thank for your support
But I have tried to do it but I can't
Please hep me
Attached Files
File Type: xlsx Data.xlsx (8.3 KB, 3 views)
File Type: docx Mail Merge.docx (14.0 KB, 3 views)
Reply With Quote
  #4  
Old 03-27-2025, 02:47 PM
macropod's Avatar
macropod macropod is offline Apply underline a text formatting Windows 10 Apply underline a text formatting Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Aside from the fact that the field names in your workbook aren't what you put in your post, you Word document bears no evidence that you've even tried to implement the solution I posted.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-27-2025, 04:16 PM
bacdh52 bacdh52 is offline Apply underline a text formatting Windows 11 Apply underline a text formatting Office 2019
Novice
Apply underline a text formatting
 
Join Date: Mar 2025
Posts: 4
bacdh52 is on a distinguished road
Default

Sorry. i will resend file this evening
Reply With Quote
  #6  
Old 03-31-2025, 06:32 AM
bacdh52 bacdh52 is offline Apply underline a text formatting Windows 11 Apply underline a text formatting Office 2019
Novice
Apply underline a text formatting
 
Join Date: Mar 2025
Posts: 4
bacdh52 is on a distinguished road
Default

Hello Mr
I am sorry about my mistake. I mixing about "{}"
I try to do again and i do with form
{ =(«RS»>90)+(«RS»>110) \# “’«RS»’;;’ «RS»’” }
And result is OK
Thank for your support
Attached Images
File Type: png Result.png (3.5 KB, 2 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply underline a text formatting Footnote formatting>"Apply changes to selected text" not limiting changes to selected text Swarup Word 11 07-26-2022 01:51 PM
Replacing a comment with underline or other formatting (or adding that formatting to commented text) paulkaye Word 4 05-16-2016 05:38 AM
Apply underline a text formatting Can I apply conditional formatting to text in a drop down menu? Keokira Word 1 04-07-2016 08:22 AM
Apply underline a text formatting The Logic Behind Apply Formatting of Surrounding Text in Reveal Formatting Pane Instructor Mark Word 4 04-06-2016 01:32 PM
Apply underline a text formatting Formatting- Apply changes to highlighted text results in same change to other text sential Word 6 01-10-2014 03:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:29 AM.


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