#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Capital letters

Hi Team,

How can I ensure that only capital letters are keen in specific cells of a specific sheet.

Awaiting for your response.

Best Regards

Akash Maheshwari
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Capital letters

Hi,

Am Wed, 7 Sep 2016 23:12:11 -0700 (PDT) schrieb Akash Maheshwari:

How can I ensure that only capital letters are keen in specific cells of a specific sheet.


what exactly do you want? Do you want to enter only a single character?
Then try it with Data Validation = Custom:
=AND(CODE(A1)=65,CODE(A1)<=90)

If a whole word or string should be in capital letters try it with
Worksheet_Change event:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Or _
Target.Count 1 Then Exit Sub

Application.EnableEvents = False
On Error GoTo CleanUp

Target = UCase(Target)

CleanUp:
Application.EnableEvents = True
End Sub


Regards
Claus B.
--
Windows10
Office 2016
  #3   Report Post  
Junior Member
 
Posts: 3
Default

sản phẩm tốt, giá rẻ, chất lượng, an to*n cho người dùng, dịch vụ ráo, lúc n*o có điều kiện qua ủng hộ nhé. chúc c*a h*ng l*m ăn hiệu quả
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
how to change small letters to capital letters HOW TO CHANGE Excel Discussion (Misc queries) 4 May 30th 07 01:12 AM
how do i turn all letters into capital letters? KeithT Excel Discussion (Misc queries) 3 May 11th 07 02:13 PM
Capital Letters Only Simon Jefford Excel Discussion (Misc queries) 2 February 2nd 06 07:04 PM
Capital Letters teresa Excel Programming 23 March 24th 05 04:17 PM
Capital Letters Gaute Excel Worksheet Functions 4 March 9th 05 10:55 AM


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