Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Find and Replace Macro

I am trying to make a Macro that searches addresses in a worksheet and
replaces "street" abbreviations with fully spelled out words. I have the
general idea of how to make the macro, but I have a couple of selective
replacements that I don't know how to handle

For example, I need to be able to replace "Dr" in "123 Monroe Dr", with
"Drive" to make "123 Monroe Drive". But I need to make sure that "Dr." in
"Dr. Bill Excel doesn't get replaced and make "Drive. Bill Excel".

The address column will be in different columns depending on which report is
being run. And there is no space or other character after "Dr" in the
address.

If I get this figured out, I should be able to solve my other problems. Any
ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Find and Replace Macro

Monroe Dr. has a space in front of the D
Dr. Bill Excel Dosen't (maybe)
Would a search for (space)Dr. Help?
--
Mike Q.


"Josh O." wrote:

I am trying to make a Macro that searches addresses in a worksheet and
replaces "street" abbreviations with fully spelled out words. I have the
general idea of how to make the macro, but I have a couple of selective
replacements that I don't know how to handle

For example, I need to be able to replace "Dr" in "123 Monroe Dr", with
"Drive" to make "123 Monroe Drive". But I need to make sure that "Dr." in
"Dr. Bill Excel doesn't get replaced and make "Drive. Bill Excel".

The address column will be in different columns depending on which report is
being run. And there is no space or other character after "Dr" in the
address.

If I get this figured out, I should be able to solve my other problems. Any
ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and replace macro edeaston Excel Discussion (Misc queries) 3 January 12th 09 10:51 AM
Find & Replace Macro Rob Wnuk Excel Programming 3 November 5th 06 02:41 AM
Using Find and Replace to replace " in a macro snail30152 Excel Programming 1 April 13th 06 11:58 PM
find replace macro Todd L. Excel Programming 1 December 17th 04 06:09 PM
find and replace macro need help excelguru Excel Programming 3 April 30th 04 04:26 AM


All times are GMT +1. The time now is 03:21 AM.

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

About Us

"It's about Microsoft Excel"