Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Upper Case only?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Freddie - 29 Dec 2007 09:56 GMT
I'm using Excel 2007, is it possible for me to format a column so that any
letters typed into it are automatically shown as upper case, regardless of
whether I have Caps Lock switched on?
Thanks for any replies.
Bob Phillips - 29 Dec 2007 10:33 GMT
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "A:A"     '<== change to suit

   On Error GoTo ws_exit
   Application.EnableEvents = False

   If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
       With Target
           If Not .HasFormula Then
               .Value = UCase(.Value)
           End If
       End With
   End If

ws_exit:
   Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> I'm using Excel 2007, is it possible for me to format a column so that any
> letters typed into it are automatically shown as upper case, regardless of
> whether I have Caps Lock switched on?
> Thanks for any replies.
Ed Ferrero - 29 Dec 2007 11:26 GMT
Hi Freddie,

Bob Phillips gave you a VBA approach. You can also format the cells using a
font that only shows uppercase characters, such as;
Felix Titling
Perpetua Titling
Stencil
Showcard Gothic
Goudy Stout

Ed Ferrero
www.edferrero.com

> I'm using Excel 2007, is it possible for me to format a column so that any
> letters typed into it are automatically shown as upper case, regardless of
> whether I have Caps Lock switched on?
> Thanks for any replies.
Freddie - 29 Dec 2007 11:50 GMT
Many Thanks, Bob & Ed for your replies, you have helped a great deal.

> Hi Freddie,
>
[quoted text clipped - 13 lines]
>> regardless of whether I have Caps Lock switched on?
>> Thanks for any replies.
Dave Peterson - 29 Dec 2007 12:14 GMT
Just a note about the font approach...

If you share the workbook with others, then they'll have to have to have the
same font installed on their pc.

(Excel can't embed fonts into the its documents like MSWord.)

> Hi Freddie,
>
[quoted text clipped - 13 lines]
> > whether I have Caps Lock switched on?
> > Thanks for any replies.

Signature

Dave Peterson

Freddie - 29 Dec 2007 12:18 GMT
Thanks for that Dave.

> Just a note about the font approach...
>
[quoted text clipped - 24 lines]
>> > whether I have Caps Lock switched on?
>> > Thanks for any replies.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.