Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

Using Macro to Change case of text in merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jonno - 29 Feb 2008 08:58 GMT
I'm trying to run a merge from Goldmine to word 2003, however the
fields I'm bringing in are all in UPPERCASE, is it possible to run a
macro that changes the fields to title case?

The fields look like:
{DDEAUTO GoldMine Data &Company \*CHARFORMAT }

I've tried the usual right click "edit field" and change the case in
the properties dialogue - but it isn't listed as an option.. Any help
appreciated.

Thanks,

Jon
Doug Robbins - Word MVP - 29 Feb 2008 10:42 GMT
I think that you are going to have to run a macro over the document created
by executing the merge to a new document.  Here is the code that you would
use:

   Selection.HomeKey wdStory
   Selection.Find.ClearFormatting
   With Selection.Find
       Do While .Execute(findText:="[A-Z]{2,}", Forward:=True, _
           MatchWildcards:=True, MatchCase:=True, Wrap:=wdFindStop) = True
           Found = True
           Selection.Range.Case = wdTitleWord
           Selection.Collapse wdCollapseEnd
       Loop
   End With

Signature

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

> I'm trying to run a merge from Goldmine to word 2003, however the
> fields I'm bringing in are all in UPPERCASE, is it possible to run a
[quoted text clipped - 10 lines]
>
> Jon
Summer - 29 Feb 2008 21:04 GMT
You might try putting in \* Caps (title case switch) and see if it works?

{ MERGEFIELD  \* Caps  \* CHARFORMAT}

Summer

www.docsliveonline

> I'm trying to run a merge from Goldmine to word 2003, however the
> fields I'm bringing in are all in UPPERCASE, is it possible to run a
[quoted text clipped - 10 lines]
>
> Jon

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.