Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default automatic charactor replacement

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default automatic charactor replacement

hi
auto correct options.
2003 on the menu bar...
toolsauto 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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default automatic charactor replacement

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" wrote in message
...
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.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default automatic charactor replacement

ToolsAutocorrect

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
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
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
255 Charactor per cell adeel via OfficeKB.com Excel Discussion (Misc queries) 2 April 15th 08 05:57 PM
automatic replacement macro (follow up) markx Excel Programming 0 July 26th 06 11:16 AM
Replacement T De Villiers[_45_] Excel Programming 0 July 21st 06 03:53 PM
Replacement T De Villiers[_46_] Excel Programming 0 July 21st 06 03:53 PM
Replacement mowen Excel Discussion (Misc queries) 1 September 7th 05 09:01 PM


All times are GMT +1. The time now is 10:57 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"