Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mitch
 
Posts: n/a
Default Running auto correct on startup?

Hi,

I'm using excel 2003 and I'm looking for a way to manually or automatically
run auto correct on startup or after pasting. The thing is that I'm importing
large amounts of data and using text to columns to sort it out and
everythings fine, but the data comes from different places and does not
always match very well. Since it's important that for instance "St. Peters"
from one source and "Saint Peter's" from another source can automatically be
changed to the same "Saint Peter's" I'm looking for something with auto
correct here.

As of now I'm searching through the data for matches to change them manually
the one and the same.

The only thing it would take was if there was a way to initiate auto correct
manually on pasted data, cause then i could just take a day and add all the
changes to auto correct and then it would do the job for me.

Oh, i'm constantly overwriting old data with newer, pasting, so this is not
a one-time operation, cause if it was i could live with it but I really need
this.

Thanks
/Mitch
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Running auto correct on startup?

Are you saying you've already added those corrections to your Autocorrect list?

If you haven't, I'd create another worksheet.

Column A would hold the old (mistyped words)
column B would hold the preferred words

Then have a macro that would loop through those cells to do mass changes.

Something like:

Option Explicit
Sub testme()

Dim ListWks As Worksheet
Dim WksToFix As Worksheet
Dim myCell As Range
Dim myRng As Range

Set ListWks = ThisWorkbook.Worksheets("sheet1")
Set WksToFix = ActiveSheet

With ListWks
Set myRng = .Range("a2", .Cells(.Rows.Count, "A").End(xlUp))
End With

For Each myCell In myRng.Cells
WksToFix.Cells.Replace what:=myCell.Value, _
replacement:=myCell.Offset(0, 1).Value, _
searchorder:=xlByRows, MatchCase:=xlYes
Next myCell
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Mitch wrote:

Hi,

I'm using excel 2003 and I'm looking for a way to manually or automatically
run auto correct on startup or after pasting. The thing is that I'm importing
large amounts of data and using text to columns to sort it out and
everythings fine, but the data comes from different places and does not
always match very well. Since it's important that for instance "St. Peters"
from one source and "Saint Peter's" from another source can automatically be
changed to the same "Saint Peter's" I'm looking for something with auto
correct here.

As of now I'm searching through the data for matches to change them manually
the one and the same.

The only thing it would take was if there was a way to initiate auto correct
manually on pasted data, cause then i could just take a day and add all the
changes to auto correct and then it would do the job for me.

Oh, i'm constantly overwriting old data with newer, pasting, so this is not
a one-time operation, cause if it was i could live with it but I really need
this.

Thanks
/Mitch


--

Dave Peterson
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
How do I turn off auto correct? roseheart01 Excel Discussion (Misc queries) 1 September 8th 05 03:18 AM
How can I turn auto correct on or off for one column only? jacskier Excel Worksheet Functions 3 June 13th 05 04:55 PM
Auto Correct ? marco Excel Discussion (Misc queries) 3 April 20th 05 08:01 PM
Is it possible to export the (Excel) auto correct "dictionary" to. KampsJ Excel Discussion (Misc queries) 1 March 30th 05 07:20 PM
Export auto correct dictionary Sakkie Excel Discussion (Misc queries) 2 March 11th 05 02:56 PM


All times are GMT +1. The time now is 01:54 PM.

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"