A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

format part of merged text in field



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2010, 08:36 AM posted to microsoft.public.word.mailmerge.fields
Marek
external usenet poster
 
Posts: 13
Default format part of merged text in field

I am trying to fill the merged fields from SQL. It works fine. But some of
data contains the symbol of trademark, registrationmark...
How can I tell the Word to format it as superscript?
e.g.
field products:
Intel(R) Centrino(R) Duo

Thank you very much
  #2  
Old February 26th, 2010, 09:05 AM posted to microsoft.public.word.mailmerge.fields
Graham Mayor
external usenet poster
 
Posts: 18,297
Default format part of merged text in field

You cannot format part of a field. One answer would be to merge to a new
document then use replace to replace (R) with its symbol i.e. ^0174.
Similarly the trademark symbol ^0169

Maybe by macro?

Sub SwapSymbols()
ActiveDocument.Range = Replace(ActiveDocument.Range, "(c)", Chr(169))
ActiveDocument.Range = Replace(ActiveDocument.Range, "(C)", Chr(169))
ActiveDocument.Range = Replace(ActiveDocument.Range, "(r)", Chr(174))
ActiveDocument.Range = Replace(ActiveDocument.Range, "(R)", Chr(174))
End Sub


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


"Marek" wrote in message
news
I am trying to fill the merged fields from SQL. It works fine. But some of
data contains the symbol of trademark, registrationmark...
How can I tell the Word to format it as superscript?
e.g.
field products:
Intel(R) Centrino(R) Duo

Thank you very much



  #3  
Old February 26th, 2010, 09:33 PM posted to microsoft.public.word.mailmerge.fields
Marek
external usenet poster
 
Posts: 13
Default format part of merged text in field

Problem is not with a symbols, I can put them just into the sql.
Problem is with superscript (upper index).
  #4  
Old February 27th, 2010, 01:24 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default format part of merged text in field

You will have to execute the merge to a new document and then use
EditReplace to replace the symbols with superscripted symbols.



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Marek" wrote in message
...
Problem is not with a symbols, I can put them just into the sql.
Problem is with superscript (upper index).


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.