Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default How do I set caps lock as default?

In an Excel worksheet, I have two cells in which I only want to enter four
letters of text each.

How can I set these cells to only display caps?

Thank you!

Mark Barnard

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 903
Default How do I set caps lock as default?

Hi Mark,
I'm glad you want to be selective in what is capitalized.
You would want to use a Change Event Macro. Normally
this would encompass an entire column but for only two
cells the macro following was adapted from
http://www.mvps.org/dmcritchie/excel/event.htm#change_v

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo ErrHandler
If Target.Address = "$C$4" Or Target.Address = "$C$5" Then
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub


To install right click on the sheet tab, then
"View Code", place the above macro after
the Option Explict statement

For more examples see
http://www.mvps.org/dmcritchie/excel/event.htm
http://www.mvps.org/dmcritchie/excel/proper.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Mark Barnard" wrote in message ...
In an Excel worksheet, I have two cells in which I only want to enter four
letters of text each.

How can I set these cells to only display caps?

Thank you!

Mark Barnard



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 do I get caps lock to work in speech recognition cap Excel Discussion (Misc queries) 0 December 21st 06 08:05 PM
Caps Lock and excel help Massimo Setting up and Configuration of Excel 2 October 30th 06 10:35 AM
forcing caps lock XCESIV Excel Worksheet Functions 1 May 31st 06 04:18 AM
Why does caps lock automatically turn on? SJ Excel Discussion (Misc queries) 1 May 25th 06 11:51 PM
Reverse Caps Lock Amy Excel Discussion (Misc queries) 1 December 1st 05 04:18 AM


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