ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   auto caps lock (https://www.excelbanter.com/excel-discussion-misc-queries/196254-auto-caps-lock.html)

ramzi

auto caps lock
 
hi,

how to set outo caps loc (beside turn on caps lock button) at sepcifiy cell.
if any latter enter into cell , he will change to caps lock .

rgds
ramzi

Héctor Miguel

auto caps lock
 
hi, ramzi !

how to set outo caps loc (beside turn on caps lock button) at sepcifiy cell.
if any latter enter into cell, he will change to caps lock.


if available, try to change the font for your range/worksheet/workbook/style/...
(no other tricks/code/stuff/... needed)

this fonts shows text un uppercase:
- Castellar
- Engravers MT
- Felix Titling
- Stencil
- Technic (*versalles* type)

this font shows text in lowercase:
- Freshbot
- Poornut
- Pussycat

hth,
hector.



Gord Dibben

auto caps lock
 
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Const WS_RANGE As String = "A1:A10" 'edit to suit
On Error GoTo ErrHandler
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
Target.Formula = UCase(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code".

Copy/paste the above into the sheet module. Edot the range if need then
Alt + q to return to the Exel window.


Gord Dibben MS Excel MVP

On Fri, 25 Jul 2008 00:05:01 -0700, ramzi
wrote:

hi,

how to set outo caps loc (beside turn on caps lock button) at sepcifiy cell.
if any latter enter into cell , he will change to caps lock .

rgds
ramzi




All times are GMT +1. The time now is 11:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com