PC Review


Reply
Thread Tools Rate Thread

allcaps option in excel like word

 
 
=?Utf-8?B?Y2FwaXRhbCBsZXR0ZXI=?=
Guest
Posts: n/a
 
      14th Sep 2007
If I write any text in a cell of ms excel that should be automatically upper
case like ms word. So how can i do ? suggest me.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      14th Sep 2007
Hi,

Press the capslock key?

Mike

"capital letter" wrote:

> If I write any text in a cell of ms excel that should be automatically upper
> case like ms word. So how can i do ? suggest me.

 
Reply With Quote
 
Bill Renaud
Guest
Posts: n/a
 
      15th Sep 2007
Mike's suggestion is the simplest, but if you must insure that a user
enters all CAPS, even if the CAPS LOCK key if off, you might add an
event handler to the worksheet. The routine below checks to see that the
data entered is actually text. It also turns off other events, so that a
formula can be entered. Events are turned on again, even if an error
occurs. Right click on the worksheet tab, then choose "View Code" at the
bottom of the menu. Paste the following code into the editor window:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rngCell As Range

On Error GoTo ErrExit

Application.EnableEvents = False

For Each rngCell In Target
With rngCell
If WorksheetFunction.IsText(.Value) _
Then
.Value = UCase(.Value)
End If
End With
Next rngCell

ErrExit:
Application.EnableEvents = True
End Sub
--
Regards,
Bill Renaud


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Add Windows Mail under send to option in Word/Excel Gary VanderMolen Windows Vista Mail 2 1st Dec 2008 08:00 AM
Modify ALLCAPS memo field Shadow Microsoft Access Form Coding 7 17th Nov 2008 07:59 AM
Converting existing ALLCAPS to lower-case. =?Utf-8?B?U3RldmU=?= Microsoft Word Document Management 5 22nd Apr 2007 11:20 PM
Provide Help Option when user accesses Word doc while in Excel =?Utf-8?B?U2FkaWU=?= Microsoft Word New Users 0 21st Oct 2006 03:08 PM
Error Message while using the send to option in Excel or Word pating Microsoft Outlook 2 17th Oct 2003 03:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:20 AM.