PC Review


Reply
Thread Tools Rate Thread

automatic charactor replacement

 
 
Jerry
Guest
Posts: n/a
 
      11th Sep 2008
I have a column in which want to automatically control information entered.
As an example if someone enters XYZ I want it to automatically change to ABC.
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      11th Sep 2008
hi
auto correct options.
2003 on the menu bar...
tools>auto correct options
type in what you want replaced and what to replace it with.

Regards
FSt1

"Jerry" wrote:

> I have a column in which want to automatically control information entered.
> As an example if someone enters XYZ I want it to automatically change to ABC.

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      11th Sep 2008
You can use this worksheet Change event to do that...

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo FixItUp
If Target.Column = 4 Then
If UCase(Target.Value) = "XYZ" Then
Application.EnableEvents = False
Target.Value = "ABC"
End If
End If
FixItUp:
Application.EnableEvents = True
End Sub

My example code above applies this functionality to Column D... change the
test in the first If..Then statement to the column number you want it
applied to. As written, it is case sensitive requiring an all upper case
XYZ. If you want case insensitivity, change the second If..Then statement to
this instead...

If UCase(Target.Value) = "XYZ" Then

--
Rick (MVP - Excel)


"Jerry" <(E-Mail Removed)> wrote in message
news:FAAC2675-CE88-4BBA-9F6B-(E-Mail Removed)...
>I have a column in which want to automatically control information entered.
> As an example if someone enters XYZ I want it to automatically change to
> ABC.


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      12th Sep 2008
Tools>Autocorrect

Roll your own.

I'm sure there are more cases than just your example so post back with more
details if you want code.


Gord Dibben MS Excel MVP

On Thu, 11 Sep 2008 13:22:13 -0700, Jerry <(E-Mail Removed)>
wrote:

>I have a column in which want to automatically control information entered.
>As an example if someone enters XYZ I want it to automatically change to ABC.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic replacement macro (follow up) markx Microsoft Excel Programming 0 26th Jul 2006 11:16 AM
Automatic Replacement of a system DLL Theo Windows XP Setup 1 28th Mar 2004 10:13 AM
word replacement and automatic correction harissa Microsoft Word New Users 3 25th Oct 2003 04:16 PM
stopping automatic replacement of system file Daniel Comp Windows XP Security 3 20th Sep 2003 10:31 AM
Stopping automatic system file replacement? Daniel Comp Windows XP New Users 2 19th Sep 2003 04:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 PM.