Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing entry to Caps


I have a simple workbook that I would like to limit the input in columns
F,G, and H begining on row 3 of each to only a capitol N or Y. I would
like to use code so it automatically changes to upper case. Is this
possible?


--
TJDeborah
------------------------------------------------------------------------
TJDeborah's Profile: http://www.excelforum.com/member.php...o&userid=33186
View this thread: http://www.excelforum.com/showthread...hreadid=530041

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Changing entry to Caps

You may be able to avoid code by using data validation

IN the cell you want to control inputs select

Data / valaidation
Then choose "list" from the first drop down
Then enter Y,N in the 'Source' Box

This will force only two entries



"TJDeborah" wrote:


I have a simple workbook that I would like to limit the input in columns
F,G, and H begining on row 3 of each to only a capitol N or Y. I would
like to use code so it automatically changes to upper case. Is this
possible?


--
TJDeborah
------------------------------------------------------------------------
TJDeborah's Profile: http://www.excelforum.com/member.php...o&userid=33186
View this thread: http://www.excelforum.com/showthread...hreadid=530041


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Changing entry to Caps

Hi TJDeborah

Try this in the worksheet's code:

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
With Target
If .Column < 6 Then Exit Sub
If .Column 8 Then Exit Sub
If .Row < 3 Then Exit Sub
If .Value = "y" Or .Value = "n" Then
.Value = UCase(.Value)
Else
MsgBox "Only ""Y"" or ""N"" please."
.Select
.ClearContents
End If
End With
Application.EnableEvents = True
End Sub


Regards

Steve

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
In Excel, changing a range of cells to all caps. antonioejones612 Excel Worksheet Functions 2 April 1st 10 04:22 PM
Changing all caps to proper Jo4321 Excel Discussion (Misc queries) 7 March 3rd 09 04:34 PM
Formula for changing all caps to lower case PFLY Excel Discussion (Misc queries) 1 May 24th 06 05:03 PM
How to automatically change a single letter text entry to caps?? Bigweed New Users to Excel 5 August 8th 05 07:39 PM
Changing text from all caps to first letter cap Dave Excel Discussion (Misc queries) 2 February 17th 05 11:27 PM


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

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"