Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Convert to Caps

Hi,

If a user is entering any Text ,I want to convert all text in CAPS
automatically.

--
Cheers!
Ashish Srivastava
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default Convert to Caps

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column 4 Then Exit Sub
On Error GoTo ErrHandler
Application.EnableEvents = False
Target.Formula = UCase(Target.Formula)
ErrHandler:
Application.EnableEvents = True
End Sub

As written Works on columns A:D only. Change the 4 to a higher number for
more columns.

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

Copy/paste the code into that sheet module.


Gord Dibben MS Excel MVP


On Thu, 11 Oct 2007 21:41:01 -0700, Ashish Srivastava
wrote:

Hi,

If a user is entering any Text ,I want to convert all text in CAPS
automatically.


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
Convert names into initial caps Grd New Users to Excel 2 February 16th 06 06:44 PM
Convert all caps to lower case RuBarb New Users to Excel 3 January 23rd 06 08:30 PM
HOW DO I CONVERT NORMAL TEXT INTO ALL CAPS? daveylee Excel Worksheet Functions 2 November 21st 05 11:21 PM
How can I convert all Caps to first letter caps in Excel? Fenljp26 Excel Worksheet Functions 5 June 30th 05 11:35 AM
In excel, how do you convert to caps? excel issue Excel Discussion (Misc queries) 1 May 23rd 05 11:20 PM


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