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 / January 2005

Tip: Looking for answers? Try searching our database.

How do I transpose lastname, firstname with a macro?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sharyn K - 22 Jan 2005 01:53 GMT
I need a macro that will transpose and change case of LASTNAME, FIRSTNAME to
Firstname Lastname.  Anyone know how to do this?
Jezebel - 22 Jan 2005 03:34 GMT
You don't need a macro. Find and replace will do it (or you can call Find
and Replace from a macro). If each name is on a separate line:

Enable wildcards.
Search for: ([!,]@), ([!^013]@)^013
Replace with: \2 \1^013

> I need a macro that will transpose and change case of LASTNAME, FIRSTNAME to
> Firstname Lastname.  Anyone know how to do this?
Helmut Weber - 22 Jan 2005 11:24 GMT
Hi,

a million ways to do that, but no perfect method, probably
Where in the doc is "LASTNAME, FIRSTNAME" to be found?
What is the structure of the doc?
Are there other words in capital letters?
Are there no names like O'GROATS, JOHN F. ?
etc...

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 
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.