LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Locking a cell column to upercase

One way is to use event code on that column.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Application.Intersect(Range("A:A"), Target) Is Nothing Then
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
End If
ErrHandler:
Application.EnableEvents = True
End Sub

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

Copy/paste the code into that sheet module.

As you enter text in column A it will change to upper case.


Gord Dibben MS Excel MVP

On Tue, 20 Feb 2007 12:04:25 -0800, Cyberwolf
wrote:

Is it possible to lock a column so that it only displays and prints in
uppercase?


 
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 format cells in upercase entry John Calder New Users to Excel 1 August 10th 06 03:51 AM
Locking column names pdgood Excel Discussion (Misc queries) 8 July 11th 06 05:11 PM
Microsoft Excel-locking a column Bonnie Excel Worksheet Functions 0 May 25th 06 03:48 PM
Locking column entries to an adjacent linked column Steeljaw Excel Discussion (Misc queries) 1 January 23rd 06 10:45 PM
Column widths - locking down Art Excel Discussion (Misc queries) 1 May 9th 05 11:00 PM


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