A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Validate data but then change the entry to upper case



 
 
Thread Tools Display Modes
  #1  
Old March 20th, 2010, 11:55 AM posted to microsoft.public.excel.worksheet.functions
Ephraim
external usenet poster
 
Posts: 15
Default Validate data but then change the entry to upper case

Hi,
Is it possible to validate data to allow only W, w, L, l and then
convert the lower case entry to upper case?
I don't want the user to have to keep pressing shift or caps lock
while entering data in these cells.
Ephraim
  #2  
Old March 20th, 2010, 12:21 PM posted to microsoft.public.excel.worksheet.functions
Abdul
external usenet poster
 
Posts: 21
Default Validate data but then change the entry to upper case

use workshhet.selection chage event code
activedcell.value=ucase(activecell.value)

On Mar 20, 2:55*pm, Ephraim wrote:
Hi,
Is it possible to validate data to allow only W, w, L, l and then
convert the lower case entry to upper case?
I don't want the user to have to keep pressing shift or caps lock
while entering data in these cells.
Ephraim


  #3  
Old March 20th, 2010, 03:06 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Validate data but then change the entry to upper case

DV

Allow: List
Source: W,L

Make sure In-cell dropdown is checked


"Ephraim" wrote:

Hi,
Is it possible to validate data to allow only W, w, L, l and then
convert the lower case entry to upper case?
I don't want the user to have to keep pressing shift or caps lock
while entering data in these cells.
Ephraim
.

  #4  
Old March 20th, 2010, 03:37 PM posted to microsoft.public.excel.worksheet.functions
Ephraim
external usenet poster
 
Posts: 15
Default Validate data but then change the entry to upper case

On Mar 20, 11:06*am, Teethless mama
wrote:
DV

Allow: List
Source: W,L

Make sure In-cell dropdown is checked



"Ephraim" wrote:
Hi,
Is it possible to validate data to allow only W, w, L, l and then
convert the lower case entry to upper case?
I don't want the user to have to keep pressing shift or caps lock
while entering data in these cells.
Ephraim
.- Hide quoted text -


- Show quoted text -


Unfortunately the cells are so close together that using a list with
in-cell dropdown covers the cell next to it which slows data entry.
I was hoping to find a solution that would allow the user to input
either W,w,L or l and then convert the lower case to upper case
automatically.
W or w represents a Win and L or l represents a Loss. Because the
lower case l may be confused with the number 1 I wish to keep
everything in upper case. A win is worth one point and a loss get's
zero points.
  #5  
Old March 20th, 2010, 06:04 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Validate data but then change the entry to upper case

Assuming column A for entry

Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 1 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
If Target.Value = "w" Or Target.Value = "l" Then
Target.Formula = UCase(Target.Formula)
Else: Target.Value = "try again"
End If
ErrHandler:
Application.EnableEvents = True
End Sub


Gord Dibben MS Excel MVP

On Sat, 20 Mar 2010 08:37:18 -0700 (PDT), Ephraim
wrote:

On Mar 20, 11:06*am, Teethless mama
wrote:
DV

Allow: List
Source: W,L

Make sure In-cell dropdown is checked



"Ephraim" wrote:
Hi,
Is it possible to validate data to allow only W, w, L, l and then
convert the lower case entry to upper case?
I don't want the user to have to keep pressing shift or caps lock
while entering data in these cells.
Ephraim
.- Hide quoted text -


- Show quoted text -


Unfortunately the cells are so close together that using a list with
in-cell dropdown covers the cell next to it which slows data entry.
I was hoping to find a solution that would allow the user to input
either W,w,L or l and then convert the lower case to upper case
automatically.
W or w represents a Win and L or l represents a Loss. Because the
lower case l may be confused with the number 1 I wish to keep
everything in upper case. A win is worth one point and a loss get's
zero points.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.