Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Event Code for Proper

Hello from Steve Dee

I have in Cell J2 the Value SWANSON DEPOT

If I put in another cell =PROPER(J2) it will change it to Swanson Depot.

My question please is it possible to do an event Code please.

Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Event Code for Proper

Steve

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 2 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = Application.Proper(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Mon, 28 May 2007 15:35:00 -0700, Steved
wrote:

Hello from Steve Dee

I have in Cell J2 the Value SWANSON DEPOT

If I put in another cell =PROPER(J2) it will change it to Swanson Depot.

My question please is it possible to do an event Code please.

Thankyou.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Event Code for Proper

Hello Gord

Thankyou.

"Gord Dibben" wrote:

Steve

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 2 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = Application.Proper(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Mon, 28 May 2007 15:35:00 -0700, Steved
wrote:

Hello from Steve Dee

I have in Cell J2 the Value SWANSON DEPOT

If I put in another cell =PROPER(J2) it will change it to Swanson Depot.

My question please is it possible to do an event Code please.

Thankyou.



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
Proper code JimMay Excel Programming 10 June 5th 06 04:46 AM
VBA Proper Case Code EMoe[_3_] Excel Programming 4 May 25th 05 08:07 PM
proper syntax in code needed Jim May Excel Programming 2 September 19th 04 12:44 AM
Proper case code not working right Juan Excel Programming 3 April 16th 04 11:11 PM


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