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 / April 2006

Tip: Looking for answers? Try searching our database.

Upper Case

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram - 12 Apr 2006 19:02 GMT
Hi,
I have a text which has entries like:
my name is abc
This place is big

Now I want to replace specific words with upper case. Here name to NAME and
place to PLACE. Here taxt can be huge and I might need to search for more
than 20 or 30 words and replace them with their upper case. I know that I can
write code for each word using find and replace.  Is it possible to write
code in single line so that I can do this upper case conversion without the
need for writing find and replace for each word.
Jezebel - 12 Apr 2006 23:12 GMT
Yes, you could code this as a loop --

For i = 1 to 30
   With MyRange.Find
       .Text = Choose(i, "name", "place", .......)
       :

> Hi,
> I have a text which has entries like:
[quoted text clipped - 10 lines]
> the
> need for writing find and replace for each word.
Ram - 13 Apr 2006 00:22 GMT
I will try. Thank you.

> Yes, you could code this as a loop --
>
[quoted text clipped - 17 lines]
> > the
> > need for writing find and replace for each word.
 
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.