#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code Help ^


Hello,

Does anyone have a pre-written code that allows you to change multiple
abriviations into words.. Similar to the "Find and Replace" Function
but on a grand scale for Entering many abbriviations and words?

Thank you for your time,

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile: http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Code Help ^

Any code would just run the replace all multiple times. So you can turn on
the macro recorder to get the basic code and set up your loop.

--
Regards,
Tom Ogilvy

"ChasePenelli"
wrote in message
news:ChasePenelli.1raiyh_1119884735.5126@excelforu m-nospam.com...

Hello,

Does anyone have a pre-written code that allows you to change multiple
abriviations into words.. Similar to the "Find and Replace" Function
but on a grand scale for Entering many abbriviations and words?

Thank you for your time,

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile:

http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Code Help ^

Suggestion: Set up a list (on a new sheet, I will call it "Abbreviations" -
you can delete it later if desired) with two columns; abbreviations in A,
actual text you want in B; then:

Public Sub AbbrevToText(SearchSheet As Worksheet)
Dim ListRange As Range, Abbreviation As Range
Set ListRange = Sheets("Abbreviations").Range("A1").CurrentRegion
For Each Abbreviation In Intersect(ListRange,
Sheets("Abbreviations").Range("A:A").Cells)
SearchSheet.UsedRange.Replace Abbreviation.Value,
Abbreviation.Range("B1").Value
Next Abbreviation
End Sub

Just run the Sub for any worksheet you want to do the "mass replace" on,
e.g. AbbrevToText(ActiveSheet)

"ChasePenelli" wrote:


Hello,

Does anyone have a pre-written code that allows you to change multiple
abriviations into words.. Similar to the "Find and Replace" Function
but on a grand scale for Entering many abbriviations and words?

Thank you for your time,

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile: http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Code Help ^

Suggestion: Set up a list (on a new sheet, I will call it "Abbreviations" -
you can delete it later if desired) with two columns; abbreviations in A,
actual text you want in B;


You might want to add some additional columns to address some additional
parameters of the Find method, e.g., the LookAt, SearchOrder, and MatchCase.

-EW

"K Dales" wrote:

then:

Public Sub AbbrevToText(SearchSheet As Worksheet)
Dim ListRange As Range, Abbreviation As Range
Set ListRange = Sheets("Abbreviations").Range("A1").CurrentRegion
For Each Abbreviation In Intersect(ListRange,
Sheets("Abbreviations").Range("A:A").Cells)
SearchSheet.UsedRange.Replace Abbreviation.Value,
Abbreviation.Range("B1").Value
Next Abbreviation
End Sub

Just run the Sub for any worksheet you want to do the "mass replace" on,
e.g. AbbrevToText(ActiveSheet)

"ChasePenelli" wrote:


Hello,

Does anyone have a pre-written code that allows you to change multiple
abriviations into words.. Similar to the "Find and Replace" Function
but on a grand scale for Entering many abbriviations and words?

Thank you for your time,

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile: http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code Help ^


If i was familiar with VB and Excel i could easily put your ideas to
use, but i really dont know very much about how to do these things...
So if anyone is nice enough to put a "plug n play" formula in this post
for me that would be great...

Thanks Again for everyones help~

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile: http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Code Help ^

how would you use this code within a macro to replace old text with new text?

"K Dales" wrote:

Suggestion: Set up a list (on a new sheet, I will call it "Abbreviations" -
you can delete it later if desired) with two columns; abbreviations in A,
actual text you want in B; then:

Public Sub AbbrevToText(SearchSheet As Worksheet)
Dim ListRange As Range, Abbreviation As Range
Set ListRange = Sheets("Abbreviations").Range("A1").CurrentRegion
For Each Abbreviation In Intersect(ListRange,
Sheets("Abbreviations").Range("A:A").Cells)
SearchSheet.UsedRange.Replace Abbreviation.Value,
Abbreviation.Range("B1").Value
Next Abbreviation
End Sub

Just run the Sub for any worksheet you want to do the "mass replace" on,
e.g. AbbrevToText(ActiveSheet)

"ChasePenelli" wrote:


Hello,

Does anyone have a pre-written code that allows you to change multiple
abriviations into words.. Similar to the "Find and Replace" Function
but on a grand scale for Entering many abbriviations and words?

Thank you for your time,

Chase


--
ChasePenelli
------------------------------------------------------------------------
ChasePenelli's Profile: http://www.excelforum.com/member.php...o&userid=24619
View this thread: http://www.excelforum.com/showthread...hreadid=382508


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
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Code to conditional format all black after date specified in code? wx4usa Excel Discussion (Misc queries) 3 December 26th 08 07:06 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Create a newworksheet with VBA code and put VBA code in the new worksheet module ceshelman Excel Programming 4 June 15th 05 04:37 PM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM


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

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

About Us

"It's about Microsoft Excel"