PC Review


Reply
Thread Tools Rate Thread

How to format cells in upercase entry

 
 
=?Utf-8?B?Sm9obiBDYWxkZXI=?=
Guest
Posts: n/a
 
      10th Aug 2006
Hi

I read the post for this question (8/8/2006) and Gord Dibben's answer works
great.

Original Question:

I need to format a column so that all cell force any text entry to uppercase.

Gord Dibben's Answer:

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


This code allows all columns up to column 8 (column H) to be affected

What I would like to know is can I nominate a particular column that this
works on.

For example I would like only column M to be affected

Thanks

JOhn

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBDYWxkZXI=?=
Guest
Posts: n/a
 
      10th Aug 2006
Thanks everyone, but I have worked it out

John





"John Calder" wrote:

> Hi
>
> I read the post for this question (8/8/2006) and Gord Dibben's answer works
> great.
>
> Original Question:
>
> I need to format a column so that all cell force any text entry to uppercase.
>
> Gord Dibben's Answer:
>
> Private Sub Worksheet_Change(ByVal Target As Excel.Range)
> If Target.Column > 8 Then Exit Sub
> On Error GoTo ErrHandler
> Application.EnableEvents = False
> Target.Formula = UCase(Target.Formula)
> ErrHandler:
> Application.EnableEvents = True
> End Sub
>
>
> This code allows all columns up to column 8 (column H) to be affected
>
> What I would like to know is can I nominate a particular column that this
> works on.
>
> For example I would like only column M to be affected
>
> Thanks
>
> JOhn
>

 
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
Best way to format cells for entry... =?Utf-8?B?UmFuZGk=?= Microsoft Excel New Users 1 20th Aug 2007 10:56 PM
Make everything Upercase =?Utf-8?B?Unlhbg==?= Microsoft Access Form Coding 3 19th Apr 2007 09:04 PM
How to format cells for uppercase entry CoDer Microsoft Excel New Users 3 12th Aug 2006 04:05 AM
data entry attempt in any Excel page highlights cells, no entry =?Utf-8?B?TWlrZQ==?= Microsoft Excel Crashes 1 19th Feb 2006 02:51 PM
Change to UPERCASE =?Utf-8?B?Qm9i?= Microsoft Excel Programming 6 22nd Oct 2005 01:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 PM.