ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Auto Capitalization (https://www.excelbanter.com/excel-discussion-misc-queries/264007-auto-capitalization.html)

Looping through

Auto Capitalization
 
Is there a way to force all cap text within a cell even if the user does not
have their cap lock on their computer?

Stephen C

Auto Capitalization
 
Try the following worksheet change event, remember to change A1 to suit
your worksheet.

Private Sub Worksheet_Change(ByVal target As Range)
If Not Application.Intersect(target, Range("A1")) Is Nothing Then
Application.EnableEvents = False
target.Value = UCase(target.Value)
Application.EnableEvents = True
End If
End Sub


"Looping through" wrote:

Is there a way to force all cap text within a cell even if the user does not
have their cap lock on their computer?



All times are GMT +1. The time now is 01:29 AM.

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